summary refs log tree commit diff stats
path: root/src/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h36
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
8class Game { 8class Game {
9 public: 9public:
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
32private:
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 */