summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
new file mode 100644
index 0000000..aae7e7f
--- /dev/null
+++ b/src/game.cpp
@@ -0,0 +1,23 @@
+#include "game.h"
+
+GameState::GameState():
+ closed_ {false},
+ paused_ {false} {
+}
+
+void GameState::close(){
+ closed_ = true;
+}
+void GameState::pause(){
+ paused_ = true;
+}
+void GameState::resume(){
+ paused_ = false;
+}
+
+bool GameState::isPaused(){
+ return paused_;
+}
+bool GameState::isClosed(){
+ return closed_;
+}