From 670a3c4558f3c2c7e7c0d84d95b906e6fe0ce804 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 7 Aug 2016 10:49:00 +0200 Subject: MOHAWK: Move card id remapping to RivenStack --- engines/mohawk/riven_stack.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engines/mohawk/riven_stack.h') 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 _cardIdMap; }; } // End of namespace Mohawk -- cgit v1.2.3