From 208c6430d6a7312f8c877cada1468be4749868b2 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Wed, 29 May 2019 02:01:28 +0530 Subject: HDB: Add the GameState and State Management --- engines/hdb/hdb.h | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'engines/hdb/hdb.h') diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 74284a590d..3a24d3bba4 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -35,16 +35,13 @@ #include "engines/util.h" #include "console.h" +#include "game.h" +#include "file-manager.h" + #define MAX_SNDCACHE_MEM 0x400000 // 4Mb of sounds in memory #define MAX_TILES_CACHED 3500 // Max no of tiles in memory at once #define GFX_CACHE_LIMIT 0x800000 -/* - Subsystem Includes -*/ - -#include "file-manager.h" - struct ADGameDescription; namespace HDB { @@ -54,6 +51,13 @@ enum HDBDebugChannels { kDebugExample2 = 1 << 1 }; +enum GameState { + GAME_TITLE, + GAME_MENU, + GAME_PLAY, + GAME_LOADING +}; + class HDBGame : public Engine { public: HDBGame(OSystem *syst, const ADGameDescription *gameDesc); @@ -66,6 +70,15 @@ public: const char *getGameId() const; Common::Platform getPlatform() const; + // Game related members; + + bool init(); + + void start(); + void changeGameState(); + + bool gameShutdown; + private: Console *_console; @@ -74,7 +87,12 @@ private: */ FileMan* _fileMan; - + + // Game Variables + + GameState gameState; + bool voiceless; + }; }// End of namespace HDB -- cgit v1.2.3