]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
random stuff
[blank.git] / src / ai / Spawner.hpp
index d0c6f97c4695cbdf9db26202c8e8b8be4bf176fb..e460bbc2dfccf5d7c3499327e71f5956ed54c31d 100644 (file)
@@ -2,7 +2,6 @@
 #define BLANK_AI_SPAWNER_HPP_
 
 #include "../app/IntervalTimer.hpp"
-#include "../rand/GaloisLFSR.hpp"
 
 #include <vector>
 #include <glm/glm.hpp>
@@ -13,13 +12,14 @@ namespace blank {
 class CompositeModel;
 class Controller;
 class Entity;
+class GaloisLFSR;
 class Skeletons;
 class World;
 
 class Spawner {
 
 public:
-       Spawner(World &, Skeletons &, std::uint64_t seed);
+       Spawner(World &, Skeletons &, GaloisLFSR &);
        ~Spawner();
 
        void LimitSkeletons(std::size_t begin, std::size_t end);
@@ -38,7 +38,7 @@ private:
        Skeletons &skeletons;
        std::vector<Controller *> controllers;
 
-       GaloisLFSR random;
+       GaloisLFSR &random;
 
        IntervalTimer timer;
        float despawn_range;