aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.h
diff options
context:
space:
mode:
authorNipun Garg2019-05-29 02:01:28 +0530
committerEugene Sandulenko2019-09-03 17:16:41 +0200
commit208c6430d6a7312f8c877cada1468be4749868b2 (patch)
treefe22bbb52858e0306cf23b4fafbc9ecec321ca45 /engines/hdb/hdb.h
parent6082037f740fe42b2d77a214d45fd6ec24d57625 (diff)
downloadscummvm-rg350-208c6430d6a7312f8c877cada1468be4749868b2.tar.gz
scummvm-rg350-208c6430d6a7312f8c877cada1468be4749868b2.tar.bz2
scummvm-rg350-208c6430d6a7312f8c877cada1468be4749868b2.zip
HDB: Add the GameState and State Management
Diffstat (limited to 'engines/hdb/hdb.h')
-rw-r--r--engines/hdb/hdb.h32
1 files changed, 25 insertions, 7 deletions
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