diff options
author | Bastien Bouclet | 2016-08-06 06:41:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 099b3b3d8ff4729b5556f07f0e4476555ce7659c (patch) | |
tree | 69e68b5ae072a8956bb9b51fcb36952703cc2138 /engines/mohawk/riven.h | |
parent | 67d9a3c71bb2c201fc4c43f159025fc6ea4517e7 (diff) | |
download | scummvm-rg350-099b3b3d8ff4729b5556f07f0e4476555ce7659c.tar.gz scummvm-rg350-099b3b3d8ff4729b5556f07f0e4476555ce7659c.tar.bz2 scummvm-rg350-099b3b3d8ff4729b5556f07f0e4476555ce7659c.zip |
MOHAWK: Move the hotspot list to RivenCard
Also replace all hardcoded accesses to the hotspot array with hotspot queries.
Diffstat (limited to 'engines/mohawk/riven.h')
-rw-r--r-- | engines/mohawk/riven.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/mohawk/riven.h b/engines/mohawk/riven.h index b2e3bf04d3..4cff24eb94 100644 --- a/engines/mohawk/riven.h +++ b/engines/mohawk/riven.h @@ -135,10 +135,8 @@ private: void handleEvents(); // Hotspot related functions and variables - void loadHotspots(uint16); void checkInventoryClick(); bool _showHotspots; - void updateZipMode(); void checkHotspotChange(); // Variables @@ -159,6 +157,7 @@ public: void changeToStack(uint16); void refreshCard(); Common::String getName(uint16 nameResource, uint16 nameID); + int16 getIdFromName(uint16 nameResource, const Common::String &name); Common::String getStackName(uint16 stack) const; RivenCard *getCurCard() const { return _card; } uint16 getCurStack() const { return _curStack; } @@ -166,12 +165,12 @@ public: uint32 getCurCardRMAP(); // Hotspot functions/variables - Common::Array<RivenHotspot *> _hotspots; RivenHotspot *_curHotspot; Common::Array<ZipMode> _zipModeData; RivenHotspot *getCurHotspot() const { return _curHotspot; } void updateCurrentHotspot(); void addZipVisitedCard(uint16 cardId, uint16 cardNameId); + bool isZipVisitedCard(const Common::String &hotspotName) const; // Variables RivenVariableMap _vars; |