]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
split graphics stuff from AI spawner
[blank.git] / src / ai / Spawner.hpp
index a1181d30bf96f77ec0809228f2079c7d0c7fa88f..d4c0a57f2c6b345d5749c04aa81ef31a22a0b8ca 100644 (file)
@@ -2,8 +2,6 @@
 #define BLANK_AI_SPAWNER_HPP_
 
 #include "../app/IntervalTimer.hpp"
-#include "../model/CompositeModel.hpp"
-#include "../model/EntityModel.hpp"
 #include "../rand/GaloisLFSR.hpp"
 
 #include <vector>
@@ -14,12 +12,13 @@ namespace blank {
 
 class Controller;
 class Entity;
+class Skeletons;
 class World;
 
 class Spawner {
 
 public:
-       Spawner(World &, std::uint64_t seed);
+       Spawner(World &, Skeletons &, std::uint64_t seed);
        ~Spawner();
 
        void Update(int dt);
@@ -31,11 +30,9 @@ private:
 
 private:
        World &world;
+       Skeletons &skeletons;
        std::vector<Controller *> controllers;
 
-       EntityModel models[3];
-       CompositeModel skeletons[3];
-
        GaloisLFSR random;
 
        IntervalTimer timer;