]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/Chaser.hpp
centralize entity controllers
[blank.git] / src / ai / Chaser.hpp
diff --git a/src/ai/Chaser.hpp b/src/ai/Chaser.hpp
deleted file mode 100644 (file)
index 43667c0..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef BLANK_AI_CHASER_HPP_
-#define BLANK_AI_CHASER_HPP_
-
-#include "Controller.hpp"
-
-
-namespace blank {
-
-class World;
-
-class Chaser
-: public Controller {
-
-public:
-       Chaser(World &, Entity &ctrl, Entity &tgt) noexcept;
-       ~Chaser();
-
-       Entity &Target() noexcept { return tgt; }
-       const Entity &Target() const noexcept { return tgt; }
-
-       void Update(int dt) override;
-
-private:
-       World &world;
-       Entity &tgt;
-       float chase_speed;
-       float flee_speed;
-       float stop_dist;
-       float flee_dist;
-
-};
-
-}
-
-#endif