diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libjin/Core/Game.cpp | 7 | ||||
-rw-r--r-- | src/libjin/Core/Game.h | 10 | ||||
-rw-r--r-- | src/libjin/core/game.cpp | 7 | ||||
-rw-r--r-- | src/libjin/core/game.h | 10 |
4 files changed, 24 insertions, 10 deletions
diff --git a/src/libjin/Core/Game.cpp b/src/libjin/Core/Game.cpp index 5c2e69b..2090d64 100644 --- a/src/libjin/Core/Game.cpp +++ b/src/libjin/Core/Game.cpp @@ -5,7 +5,12 @@ namespace jin namespace core { - Game::Game() :run(true) {}; + Game::Game() :_run(true) {}; + + void Game::run() + { + + } } } diff --git a/src/libjin/Core/Game.h b/src/libjin/Core/Game.h index e155607..becb780 100644 --- a/src/libjin/Core/Game.h +++ b/src/libjin/Core/Game.h @@ -19,7 +19,7 @@ namespace core }; - inline void quit() // quit game loop + inline void quit() { CALLONCE(_quit()); } @@ -29,11 +29,13 @@ namespace core return run; } - inline void exit() // exit game + inline void exit() { CALLONCE(_exit()); } + void run(); + private: Game(); @@ -41,7 +43,7 @@ namespace core SINGLETON(Game); - bool run; + bool _run; inline void _exit() { @@ -50,7 +52,7 @@ namespace core inline void _quit() { - run = false; + _run = false; } }; } diff --git a/src/libjin/core/game.cpp b/src/libjin/core/game.cpp index 5c2e69b..2090d64 100644 --- a/src/libjin/core/game.cpp +++ b/src/libjin/core/game.cpp @@ -5,7 +5,12 @@ namespace jin namespace core { - Game::Game() :run(true) {}; + Game::Game() :_run(true) {}; + + void Game::run() + { + + } } } diff --git a/src/libjin/core/game.h b/src/libjin/core/game.h index e155607..becb780 100644 --- a/src/libjin/core/game.h +++ b/src/libjin/core/game.h @@ -19,7 +19,7 @@ namespace core }; - inline void quit() // quit game loop + inline void quit() { CALLONCE(_quit()); } @@ -29,11 +29,13 @@ namespace core return run; } - inline void exit() // exit game + inline void exit() { CALLONCE(_exit()); } + void run(); + private: Game(); @@ -41,7 +43,7 @@ namespace core SINGLETON(Game); - bool run; + bool _run; inline void _exit() { @@ -50,7 +52,7 @@ namespace core inline void _quit() { - run = false; + _run = false; } }; } |