HDB: Add _actionMode and its getter-setters

This commit is contained in:
Nipun Garg 2019-06-20 02:27:31 +05:30 committed by Eugene Sandulenko
parent 2dd40d79a2
commit 15d964afec
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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
};