]> git.localhorst.tv Git - blank.git/blob - src/ai/Controller.hpp
tvec[234]<int> -> ivec[234]
[blank.git] / src / ai / Controller.hpp
1 #ifndef BLANK_AI_CONTROLLER_HPP_
2 #define BLANK_AI_CONTROLLER_HPP_
3
4
5 namespace blank {
6
7 class Entity;
8
9 class Controller {
10
11 public:
12         explicit Controller(Entity &e) noexcept;
13         virtual ~Controller();
14
15         Entity &Controlled() noexcept { return entity; }
16         const Entity &Controlled() const noexcept { return entity; }
17
18         virtual void Update(int dt) = 0;
19
20 private:
21         Entity &entity;
22
23 };
24
25 }
26
27 #endif