X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.hpp;h=9fb3d368de0dcd2a02156006422526a54a95a53f;hb=9ebe2c320fd9f94266ab93fa2f9d9908a0a284d3;hp=b36e520f7d38cb7273e33109052bbc6435ea205b;hpb=d02daa5a4805dc3184884f3a7cd7620e5787adcb;p=blank.git diff --git a/src/ai/Spawner.hpp b/src/ai/Spawner.hpp index b36e520..9fb3d36 100644 --- a/src/ai/Spawner.hpp +++ b/src/ai/Spawner.hpp @@ -2,7 +2,9 @@ #define BLANK_AI_SPAWNER_HPP_ #include "../app/IntervalTimer.hpp" +#include "../model/CompositeModel.hpp" #include "../model/EntityModel.hpp" +#include "../rand/GaloisLFSR.hpp" #include #include @@ -16,7 +18,7 @@ class World; class Spawner { public: - explicit Spawner(World &); + Spawner(World &, std::uint64_t seed); ~Spawner(); void Update(int dt); @@ -30,7 +32,10 @@ private: World &world; std::vector controllers; - EntityModel models[14]; + EntityModel models[3]; + CompositeModel skeletons[3]; + + GaloisLFSR random; IntervalTimer timer; float despawn_range;