summary refs log tree commit diff stats
path: root/src/system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-02-08 12:34:42 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-02-08 12:34:42 -0500
commitcefe66cdbb8786dc455657376e36f0ff8785d5bc (patch)
tree7e90536fad90f2954b3834dc4959f402883c32b3 /src/system.h
parentcec0ed92c4035c4421d3cc2448f5423fcbb7f7d4 (diff)
downloadtherapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.gz
therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.bz2
therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.zip
Introduced animated sprites
Also restyled a lot of the code.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h index 489afd0..6a3cd14 100644 --- a/src/system.h +++ b/src/system.h
@@ -1,12 +1,18 @@
1#ifndef SYSTEM_H_B61A8CEA 1#ifndef SYSTEM_H_B61A8CEA
2#define SYSTEM_H_B61A8CEA 2#define SYSTEM_H_B61A8CEA
3 3
4#include "entity_manager.h"
5
4class Game; 6class Game;
5 7
6class System { 8class System {
7public: 9public:
8 System(Game& game) 10
9 : game(game) {} 11 using id_type = EntityManager::id_type;
12
13 System(Game& game) : game_(game)
14 {
15 }
10 16
11 virtual ~System() = default; 17 virtual ~System() = default;
12 18
@@ -14,7 +20,7 @@ public:
14 20
15protected: 21protected:
16 22
17 Game& game; 23 Game& game_;
18}; 24};
19 25
20#endif /* end of include guard: SYSTEM_H_B61A8CEA */ 26#endif /* end of include guard: SYSTEM_H_B61A8CEA */