aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/riven_stack.h')
-rw-r--r--engines/mohawk/riven_stack.h9
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