summary refs log tree commit diff stats
path: root/src/behaviour_system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:04:41 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-20 13:04:41 -0500
commit996076cf151a27a7a8d278aa4d15b28cfb196c46 (patch)
tree96a2fdcf3fd5a22394313d140cacc0257a821543 /src/behaviour_system.h
parentee802c01d3008e6019bc55a02fcc2e6d68b288d1 (diff)
downloadtanetane-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.h24
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
7class Game;
8
9class BehaviourSystem : public System {
10public:
11
12 static constexpr SystemKey Key = SystemKey::Behaviour;
13
14 explicit BehaviourSystem(Game& game) : game_(game) {}
15
16 void tick(double dt) override;
17
18private:
19
20 Game& game_;
21 Timer timer_ { 500 };
22};
23
24#endif /* end of include guard: BEHAVIOUR_SYSTEM_H_FC908ABE */