diff options
author | Bastien Bouclet | 2016-08-07 10:49:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 670a3c4558f3c2c7e7c0d84d95b906e6fe0ce804 (patch) | |
tree | 97d07cf30de54be748a20980b150d888ff8ffea8 /engines/mohawk/riven_stack.h | |
parent | 3c8decec0a416d874ae6db93c7e4977ec36432fb (diff) | |
download | scummvm-rg350-670a3c4558f3c2c7e7c0d84d95b906e6fe0ce804.tar.gz scummvm-rg350-670a3c4558f3c2c7e7c0d84d95b906e6fe0ce804.tar.bz2 scummvm-rg350-670a3c4558f3c2c7e7c0d84d95b906e6fe0ce804.zip |
MOHAWK: Move card id remapping to RivenStack
Diffstat (limited to 'engines/mohawk/riven_stack.h')
-rw-r--r-- | engines/mohawk/riven_stack.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/riven_stack.h b/engines/mohawk/riven_stack.h index 36d6fb0b06..02fb58cff2 100644 --- a/engines/mohawk/riven_stack.h +++ b/engines/mohawk/riven_stack.h @@ -89,8 +89,15 @@ public: * The search is case insensitive. */ int16 getIdFromName(RivenNameResource nameResource, const Common::String &name) const; + + /** Get the id of a card in the card from its global identifier */ + uint16 getCardStackId(uint32 globalId) const; + + /** Get the global id of the currently active card */ + uint32 getCurrentCardGlobalId() const; private: void loadResourceNames(); + void loadCardIdMap(); MohawkEngine_Riven *_vm; @@ -102,6 +109,8 @@ private: RivenNameList _hotspotNames; RivenNameList _cardNames; RivenNameList _stackNames; + + Common::Array<uint32> _cardIdMap; }; } // End of namespace Mohawk |