diff options
author | Nipun Garg | 2019-07-05 03:16:04 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:11 +0200 |
commit | 97d702f8917e4ae20114237f19653d3894f31708 (patch) | |
tree | 540e9dd845f130eb15e9a3e7ff430dc74b6cb17b /engines | |
parent | 5ed21d12df2c548d4cc7e214715a3c7c307c528a (diff) | |
download | scummvm-rg350-97d702f8917e4ae20114237f19653d3894f31708.tar.gz scummvm-rg350-97d702f8917e4ae20114237f19653d3894f31708.tar.bz2 scummvm-rg350-97d702f8917e4ae20114237f19653d3894f31708.zip |
HDB: Add Gate Puddles
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-init.cpp | 3 | ||||
-rw-r--r-- | engines/hdb/ai.h | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/hdb/ai-init.cpp b/engines/hdb/ai-init.cpp index c19037ff8d..e203ed5885 100644 --- a/engines/hdb/ai-init.cpp +++ b/engines/hdb/ai-init.cpp @@ -968,6 +968,9 @@ void AI::restartSystem() { // Clear Bridges memset(&_bridges[0], 0, sizeof(_bridges)); _numBridges = 0; + + // No Gate Puddles + _gatePuddles = 0; } void AI::initAnimInfo() { diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index f37bb81579..59306389a0 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -41,6 +41,7 @@ enum { kMaxLuaEnts = 50, kMaxCallbacks = 20, kMaxFairystones = 5, + kMaxGatePuddles = 8, kMaxBridges = 10, kDelay5Seconds = 5 * kGameFPS, kPlayerMoveSpeed = 4, @@ -1032,6 +1033,15 @@ public: } bool completeDelivery(const char *id); + // Gate Puddles + int _gatePuddles; + void addGatePuddle(int amount) { + _gatePuddles += amount; + } + int getGatePuddles() { + return _gatePuddles; + } + // Player Variables bool _playerDead; bool _playerInvisible; // While on RailRider for example |