diff options
author | Nipun Garg | 2019-06-19 21:16:36 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:49 +0200 |
commit | 25f619dbb47d0a019e829971a822f1f6bef0dbab (patch) | |
tree | b9595a9d55473c5dd126fbb14b9fc3b2d4cd4370 /engines | |
parent | 506634929757625da7a8a5a1f4315492bbab2f5b (diff) | |
download | scummvm-rg350-25f619dbb47d0a019e829971a822f1f6bef0dbab.tar.gz scummvm-rg350-25f619dbb47d0a019e829971a822f1f6bef0dbab.tar.bz2 scummvm-rg350-25f619dbb47d0a019e829971a822f1f6bef0dbab.zip |
HDB: Add Player Variables and Player Functions
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index cef784d079..426d772043 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -402,6 +402,39 @@ public: // Entity Functions AIEntity *locateEntity(const char *luaName); + // Player Functions + void assignPlayer(AIEntity *p) { + _player = p; + } + + bool playerDead() { + return _playerDead; + } + + bool playerOnIce() { + return _playerOnIce; + } + + bool playerLocked() { + return _playerLock; + } + + void setPlayerLock(bool status) { + _playerLock = status; + } + + void setPlayerInvisible(bool status) { + _playerInvisible = status; + } + + bool playerRunning() { + return _playerRunning; + } + + void togglePlayerRunning() { + _playerRunning = !_playerRunning; + } + // Cinematic Functions void processCines(); void cineStart(bool abortable, const char *abortFunc); @@ -420,6 +453,14 @@ public: private: Common::Array<AIEntity *> *_ents; + AIEntity *_player; + + // Player Variables + bool _playerDead; + bool _playerInvisible; // While on RailRider for example + bool _playerOnIce; + bool _playerEmerging; + bool _playerRunning; // Cinematics Variables bool _cineAbortable; |