diff options
author | Nipun Garg | 2019-06-20 02:27:31 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:51 +0200 |
commit | 15d964afecfaaacf2ae34b729ea4a3812fb70601 (patch) | |
tree | fba13ad7c1573a161e6b6c66a9e0161ac254db66 | |
parent | 2dd40d79a2e0c14414a06190af3c64fc52f1f078 (diff) | |
download | scummvm-rg350-15d964afecfaaacf2ae34b729ea4a3812fb70601.tar.gz scummvm-rg350-15d964afecfaaacf2ae34b729ea4a3812fb70601.tar.bz2 scummvm-rg350-15d964afecfaaacf2ae34b729ea4a3812fb70601.zip |
HDB: Add _actionMode and its getter-setters
-rw-r--r-- | engines/hdb/hdb.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 0942085ce8..018e1e51dd 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -85,6 +85,10 @@ bool HDBGame::init() { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); } + // REMOVE: Putting this here since Menu hasn't been implemented yet. + // Defaults the game into Action Mode + setActionMode(1); + _gameShutdown = false; _systemInit = true; diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 7416b3cc95..6b027863fc 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -119,6 +119,13 @@ public: void useEntity(AIEntity *e); + int getActionMode() { + return _actionMode; + } + void setActionMode(int status) { + _actionMode = status; + } + bool _gameShutdown; Graphics::PixelFormat _format; @@ -129,6 +136,7 @@ private: bool _systemInit; GameState _gameState; + int _actionMode; // 0 or 1 }; |