summary refs log tree commit diff stats
path: root/src/system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-06-26 19:59:28 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-06-26 19:59:28 -0400
commit428c401f9c1053f7e13ffe641758dfb72791d8dc (patch)
tree3b7c74e0346db3d08319e309c37e975e19395d74 /src/system.h
parent55c8a14a7e2b2dadf0def3e09f970818164366f5 (diff)
downloadtherapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.tar.gz
therapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.tar.bz2
therapy-428c401f9c1053f7e13ffe641758dfb72791d8dc.zip
Player now moves
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/system.h b/src/system.h index 85415f0..e08db0a 100644 --- a/src/system.h +++ b/src/system.h
@@ -1,11 +1,17 @@
1#ifndef SYSTEM_H_B61A8CEA 1#ifndef SYSTEM_H_B61A8CEA
2#define SYSTEM_H_B61A8CEA 2#define SYSTEM_H_B61A8CEA
3 3
4class EntityManager; 4class Game;
5 5
6class System { 6class System {
7 public: 7 public:
8 virtual void tick(EntityManager& manager, float dt) = 0; 8 System(Game& game)
9 : game(game) {}
10
11 virtual void tick(double dt) = 0;
12
13 protected:
14 Game& game;
9}; 15};
10 16
11#endif /* end of include guard: SYSTEM_H_B61A8CEA */ 17#endif /* end of include guard: SYSTEM_H_B61A8CEA */