X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fai%2FSpawner.hpp;h=b36e520f7d38cb7273e33109052bbc6435ea205b;hb=5e8eee742138f2578e83e710ffc41408abd3073f;hp=a0da02fb0ec939b4e7a6c8e2375a82b00d83d03a;hpb=aefc5482b27e3d259b6c9f3f1e4cdd9ef2e6a8d2;p=blank.git diff --git a/src/ai/Spawner.hpp b/src/ai/Spawner.hpp index a0da02f..b36e520 100644 --- a/src/ai/Spawner.hpp +++ b/src/ai/Spawner.hpp @@ -2,14 +2,15 @@ #define BLANK_AI_SPAWNER_HPP_ #include "../app/IntervalTimer.hpp" +#include "../model/EntityModel.hpp" -#include +#include #include 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 &, const glm::vec3 &); + void Spawn(const glm::ivec3 &, const glm::vec3 &); private: World &world; - std::list controllers; + std::vector controllers; + + EntityModel models[14]; IntervalTimer timer; float despawn_range;