summary refs log tree commit diff stats
path: root/src/behaviour_system.h
blob: 0eb4772c0c323328f987b876cca41ac74e584533 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 */