diff options
author | Paul Gilbert | 2018-02-26 19:15:00 -0500 |
---|---|---|
committer | Paul Gilbert | 2018-02-26 19:15:00 -0500 |
commit | 0fc11aef63d2abbc695d64ed41053b4163aac69c (patch) | |
tree | 5c3da450b0112529f48e909a81cb58609052f1ba /engines/xeen/xeen.h | |
parent | 724c4e57add58362395ad6b6e79bcdaed1ff073b (diff) | |
download | scummvm-rg350-0fc11aef63d2abbc695d64ed41053b4163aac69c.tar.gz scummvm-rg350-0fc11aef63d2abbc695d64ed41053b4163aac69c.tar.bz2 scummvm-rg350-0fc11aef63d2abbc695d64ed41053b4163aac69c.zip |
XEEN: Cleanup of the game title, intro, and menu launching code
Diffstat (limited to 'engines/xeen/xeen.h')
-rw-r--r-- | engines/xeen/xeen.h | 43 |
1 files changed, 32 insertions, 11 deletions
diff --git a/engines/xeen/xeen.h b/engines/xeen/xeen.h index 561d928158..5031f1fea3 100644 --- a/engines/xeen/xeen.h +++ b/engines/xeen/xeen.h @@ -93,10 +93,12 @@ enum Mode { MODE_86 = 86 }; -enum QuitMode { - QMODE_NONE = 0, - QMODE_QUIT = 1, - QMODE_MENU = 2 +enum GameMode { + GMODE_NONE = 0, + GMODE_STARTUP = 1, + GMODE_MENU = 2, + GMODE_PLAY_GAME = 3, + GMODE_QUIT = 4 }; struct XeenGameDescription; @@ -117,19 +119,38 @@ private: virtual Common::Error run(); virtual bool hasFeature(EngineFeature f) const; + /** + * Outer gameplay loop responsible for dispatching control to game-specific + * intros, main menus, or to play the actual game + */ + void outerGameLoop(); + + /** + * Inner game loop + */ + void gameLoop(); + + /** + * Plays the actual game + */ void play(); + /** + * Shows a please wait dialog + */ void pleaseWait(); - - void gameLoop(); protected: int _loadSaveSlot; protected: /** - * Outer gameplay loop responsible for dispatching control to game-specific - * intros, main menus, or to play the actual game + * Show the starting sequence/intro + */ + virtual void showStartup() = 0; + + /** + * Show the startup menu */ - virtual void outerGameLoop() = 0; + virtual void showMainMenu() = 0; /** * Play the game @@ -158,7 +179,7 @@ public: Windows *_windows; Mode _mode; GameEvent _gameEvent; - QuitMode _quitMode; + GameMode _gameMode; bool _noDirectionSense; bool _startupWindowActive; uint _endingScore; @@ -185,7 +206,7 @@ public: /** * Returns true if the game should be exited (and likely return to game menu) */ - bool shouldExit() const { return _quitMode != QMODE_NONE || shouldQuit(); } + bool shouldExit() const { return _gameMode != GMODE_NONE || shouldQuit(); } /** * Load a savegame |