]> git.localhorst.tv Git - blank.git/blob - src/ai/Chaser.hpp
tvec[234]<int> -> ivec[234]
[blank.git] / src / ai / Chaser.hpp
1 #ifndef BLANK_AI_CHASER_HPP_
2 #define BLANK_AI_CHASER_HPP_
3
4 #include "Controller.hpp"
5
6
7 namespace blank {
8
9 class Chaser
10 : public Controller {
11
12 public:
13         Chaser(Entity &ctrl, Entity &tgt) noexcept;
14         ~Chaser();
15
16         Entity &Target() noexcept { return tgt; }
17         const Entity &Target() const noexcept { return tgt; }
18
19         void Update(int dt) override;
20
21 private:
22         Entity &tgt;
23         float speed;
24         float stop_dist;
25         float flee_dist;
26
27 };
28
29 }
30
31 #endif