diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-08 12:34:42 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-08 12:34:42 -0500 |
commit | cefe66cdbb8786dc455657376e36f0ff8785d5bc (patch) | |
tree | 7e90536fad90f2954b3834dc4959f402883c32b3 /src/game.h | |
parent | cec0ed92c4035c4421d3cc2448f5423fcbb7f7d4 (diff) | |
download | therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.gz therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.tar.bz2 therapy-cefe66cdbb8786dc455657376e36f0ff8785d5bc.zip |
Introduced animated sprites
Also restyled a lot of the code.
Diffstat (limited to 'src/game.h')
-rw-r--r-- | src/game.h | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/src/game.h b/src/game.h index ec667c8..7bd038e 100644 --- a/src/game.h +++ b/src/game.h | |||
@@ -6,19 +6,35 @@ | |||
6 | #include "system_manager.h" | 6 | #include "system_manager.h" |
7 | 7 | ||
8 | class Game { | 8 | class Game { |
9 | public: | 9 | public: |
10 | Game(GLFWwindow* window); | ||
11 | 10 | ||
12 | void execute(); | 11 | Game(GLFWwindow* window); |
13 | EntityManager& getEntityManager(); | ||
14 | 12 | ||
15 | friend void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods); | 13 | void execute(); |
16 | 14 | ||
17 | private: | 15 | inline EntityManager& getEntityManager() |
18 | EntityManager entityManager; | 16 | { |
19 | SystemManager systemManager; | 17 | return entityManager_; |
20 | GLFWwindow* const window; | 18 | } |
21 | bool shouldQuit = false; | 19 | |
20 | inline SystemManager& getSystemManager() | ||
21 | { | ||
22 | return systemManager_; | ||
23 | } | ||
24 | |||
25 | friend void key_callback( | ||
26 | GLFWwindow* window, | ||
27 | int key, | ||
28 | int scancode, | ||
29 | int action, | ||
30 | int mods); | ||
31 | |||
32 | private: | ||
33 | |||
34 | EntityManager entityManager_; | ||
35 | SystemManager systemManager_; | ||
36 | GLFWwindow* const window_; | ||
37 | bool shouldQuit_ = false; | ||
22 | }; | 38 | }; |
23 | 39 | ||
24 | #endif /* end of include guard: GAME_H_1014DDC9 */ | 40 | #endif /* end of include guard: GAME_H_1014DDC9 */ |