]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
glm backwards compatibility
[blank.git] / src / ai / Spawner.hpp
index be2ff31b7307e99f484c5b183c788e329d260e82..daa5f7873390b41de1d9be6db9f2f395d8b87fe3 100644 (file)
@@ -2,16 +2,14 @@
 #define BLANK_AI_SPAWNER_HPP_
 
 #include "../app/IntervalTimer.hpp"
+#include "../graphics/glm.hpp"
 
 #include <vector>
-#include <glm/glm.hpp>
 
 
 namespace blank {
 
-class Controller;
 class Entity;
-class GaloisLFSR;
 class Model;
 class ModelRegistry;
 class World;
@@ -19,7 +17,7 @@ class World;
 class Spawner {
 
 public:
-       Spawner(World &, ModelRegistry &, GaloisLFSR &);
+       Spawner(World &, ModelRegistry &);
        ~Spawner();
 
        void LimitModels(std::size_t begin, std::size_t end);
@@ -36,11 +34,9 @@ private:
 private:
        World &world;
        ModelRegistry &models;
-       std::vector<Controller *> controllers;
+       std::vector<Entity *> entities;
 
-       GaloisLFSR &random;
-
-       IntervalTimer timer;
+       CoarseTimer timer;
        float despawn_range;
        float spawn_distance;
        unsigned int max_entities;