]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
lerp random walk and make it change ang vel
[blank.git] / src / ai / Spawner.hpp
index 127a8606dbdfbb8a2a6e491d75b632a8fb22ba99..9fb3d368de0dcd2a02156006422526a54a95a53f 100644 (file)
@@ -2,6 +2,9 @@
 #define BLANK_AI_SPAWNER_HPP_
 
 #include "../app/IntervalTimer.hpp"
+#include "../model/CompositeModel.hpp"
+#include "../model/EntityModel.hpp"
+#include "../rand/GaloisLFSR.hpp"
 
 #include <vector>
 #include <glm/glm.hpp>
@@ -15,7 +18,7 @@ class World;
 class Spawner {
 
 public:
-       explicit Spawner(World &);
+       Spawner(World &, std::uint64_t seed);
        ~Spawner();
 
        void Update(int dt);
@@ -29,6 +32,11 @@ private:
        World &world;
        std::vector<Controller *> controllers;
 
+       EntityModel models[3];
+       CompositeModel skeletons[3];
+
+       GaloisLFSR random;
+
        IntervalTimer timer;
        float despawn_range;
        float spawn_distance;