diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:04:41 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-20 13:04:41 -0500 |
commit | 996076cf151a27a7a8d278aa4d15b28cfb196c46 (patch) | |
tree | 96a2fdcf3fd5a22394313d140cacc0257a821543 /src/behaviour_system.h | |
parent | ee802c01d3008e6019bc55a02fcc2e6d68b288d1 (diff) | |
download | tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.tar.gz tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.tar.bz2 tanetane-996076cf151a27a7a8d278aa4d15b28cfb196c46.zip |
Added a randomly wandering Ionia to the map
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 */ | ||