]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Spawner.hpp
moved entity spawn and control into its own class
[blank.git] / src / ai / Spawner.hpp
diff --git a/src/ai/Spawner.hpp b/src/ai/Spawner.hpp
new file mode 100644 (file)
index 0000000..e3e8f24
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef BLANK_AI_SPAWNER_HPP_
+#define BLANK_AI_SPAWNER_HPP_
+
+#include <list>
+#include <glm/glm.hpp>
+
+
+namespace blank {
+
+class RandomWalk;
+class World;
+
+class Spawner {
+
+public:
+       explicit Spawner(World &);
+       ~Spawner();
+
+       void Update(int dt);
+
+private:
+       void Spawn(const glm::vec3 &);
+
+private:
+       World &world;
+       std::list<RandomWalk> controllers;
+
+};
+
+}
+
+#endif