diff options
Diffstat (limited to 'src/behaviour_system.h')
-rw-r--r-- | src/behaviour_system.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/behaviour_system.h b/src/behaviour_system.h new file mode 100644 index 0000000..0eb4772 --- /dev/null +++ b/src/behaviour_system.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef BEHAVIOUR_SYSTEM_H_FC908ABE | ||
2 | #define BEHAVIOUR_SYSTEM_H_FC908ABE | ||
3 | |||
4 | #include "system.h" | ||
5 | #include "timer.h" | ||
6 | |||
7 | class Game; | ||
8 | |||
9 | class BehaviourSystem : public System { | ||
10 | public: | ||
11 | |||
12 | static constexpr SystemKey Key = SystemKey::Behaviour; | ||
13 | |||
14 | explicit BehaviourSystem(Game& game) : game_(game) {} | ||
15 | |||
16 | void tick(double dt) override; | ||
17 | |||
18 | private: | ||
19 | |||
20 | Game& game_; | ||
21 | Timer timer_ { 500 }; | ||
22 | }; | ||
23 | |||
24 | #endif /* end of include guard: BEHAVIOUR_SYSTEM_H_FC908ABE */ | ||