]> git.localhorst.tv Git - blank.git/blob - src/ai/Spawner.hpp
moved entity spawn and control into its own class
[blank.git] / src / ai / Spawner.hpp
1 #ifndef BLANK_AI_SPAWNER_HPP_
2 #define BLANK_AI_SPAWNER_HPP_
3
4 #include <list>
5 #include <glm/glm.hpp>
6
7
8 namespace blank {
9
10 class RandomWalk;
11 class World;
12
13 class Spawner {
14
15 public:
16         explicit Spawner(World &);
17         ~Spawner();
18
19         void Update(int dt);
20
21 private:
22         void Spawn(const glm::vec3 &);
23
24 private:
25         World &world;
26         std::list<RandomWalk> controllers;
27
28 };
29
30 }
31
32 #endif