From 996076cf151a27a7a8d278aa4d15b28cfb196c46 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 20 Feb 2021 13:04:41 -0500 Subject: Added a randomly wandering Ionia to the map --- src/behaviour_system.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/behaviour_system.h (limited to 'src/behaviour_system.h') 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 @@ +#ifndef BEHAVIOUR_SYSTEM_H_FC908ABE +#define BEHAVIOUR_SYSTEM_H_FC908ABE + +#include "system.h" +#include "timer.h" + +class Game; + +class BehaviourSystem : public System { +public: + + static constexpr SystemKey Key = SystemKey::Behaviour; + + explicit BehaviourSystem(Game& game) : game_(game) {} + + void tick(double dt) override; + +private: + + Game& game_; + Timer timer_ { 500 }; +}; + +#endif /* end of include guard: BEHAVIOUR_SYSTEM_H_FC908ABE */ -- cgit 1.4.1