diff options
Diffstat (limited to 'StarsEx/Game.h')
-rw-r--r-- | StarsEx/Game.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/StarsEx/Game.h b/StarsEx/Game.h index 4070faf..cf62744 100644 --- a/StarsEx/Game.h +++ b/StarsEx/Game.h @@ -23,6 +23,16 @@ class Game public: static const char* TYPENAME() { return "Game"; } enum STATUS { OK, RUN, EXIT, INIT_FAILED, TOO_MANY }; + enum MODE { + MENU_MODE, + CLOD_MODE, + CMPN_MODE, + PREP_MODE, + PLAN_MODE, + LOAD_MODE, + PLAY_MODE, + EXIT_MODE, + }; Game(); virtual ~Game(); @@ -37,6 +47,9 @@ public: virtual bool OnPaint() { return false; } virtual bool OnHelp() { return false; } + virtual int GetGameMode() const { return game_mode; } + virtual void SetGameMode(int mode) { game_mode = mode; } + virtual void Activate(bool f); virtual void Pause(bool f); int Status() const { return status; } @@ -69,6 +82,7 @@ protected: int status; int exit_code; + int game_mode; bool active; bool paused; |