]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
split chunk redering from world model
[blank.git] / src / ai / Spawner.hpp
index a0da02fb0ec939b4e7a6c8e2375a82b00d83d03a..c55d73c0f7f90b835b5791f69e8c9096e17cc81d 100644 (file)
@@ -2,14 +2,15 @@
 #define BLANK_AI_SPAWNER_HPP_
 
 #include "../app/IntervalTimer.hpp"
+#include "../model/EntityModel.hpp"
 
-#include <list>
+#include <vector>
 #include <glm/glm.hpp>
 
 
 namespace blank {
 
-class RandomWalk;
+class Controller;
 class World;
 
 class Spawner {
@@ -23,11 +24,13 @@ public:
 private:
        void CheckDespawn() noexcept;
        void TrySpawn();
-       void Spawn(const glm::tvec3<int> &, const glm::vec3 &);
+       void Spawn(const glm::ivec3 &, const glm::vec3 &);
 
 private:
        World &world;
-       std::list<RandomWalk> controllers;
+       std::vector<Controller *> controllers;
+
+       EntityModel models[3];
 
        IntervalTimer timer;
        float despawn_range;