From cefe66cdbb8786dc455657376e36f0ff8785d5bc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 8 Feb 2018 12:34:42 -0500 Subject: Introduced animated sprites Also restyled a lot of the code. --- src/game.h | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) (limited to 'src/game.h') 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 @@ #include "system_manager.h" class Game { - public: - Game(GLFWwindow* window); +public: - void execute(); - EntityManager& getEntityManager(); + Game(GLFWwindow* window); - friend void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods); + void execute(); - private: - EntityManager entityManager; - SystemManager systemManager; - GLFWwindow* const window; - bool shouldQuit = false; + inline EntityManager& getEntityManager() + { + return entityManager_; + } + + inline SystemManager& getSystemManager() + { + return systemManager_; + } + + friend void key_callback( + GLFWwindow* window, + int key, + int scancode, + int action, + int mods); + +private: + + EntityManager entityManager_; + SystemManager systemManager_; + GLFWwindow* const window_; + bool shouldQuit_ = false; }; #endif /* end of include guard: GAME_H_1014DDC9 */ -- cgit 1.4.1