diff options
author | Bastien Bouclet | 2016-08-03 07:19:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 0aaa3760c25e37800f0fda6ef4771c2347d72f7c (patch) | |
tree | 2d958ee707bea088f80a09c66b83e47f301c6caa /engines/mohawk/riven.h | |
parent | 3c2ca0887766d54db5690e140d3fb2d9479bdc4d (diff) | |
download | scummvm-rg350-0aaa3760c25e37800f0fda6ef4771c2347d72f7c.tar.gz scummvm-rg350-0aaa3760c25e37800f0fda6ef4771c2347d72f7c.tar.bz2 scummvm-rg350-0aaa3760c25e37800f0fda6ef4771c2347d72f7c.zip |
MOHAWK: Move Riven's Card to a separate object
Diffstat (limited to 'engines/mohawk/riven.h')
-rw-r--r-- | engines/mohawk/riven.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/engines/mohawk/riven.h b/engines/mohawk/riven.h index ce819ac970..11a6d071ee 100644 --- a/engines/mohawk/riven.h +++ b/engines/mohawk/riven.h @@ -41,6 +41,7 @@ class RivenExternal; class RivenConsole; class RivenSaveLoad; class RivenOptionsDialog; +class RivenCard; class RivenSoundManager; // Riven Stack Types @@ -99,13 +100,6 @@ struct RivenHotspot { bool enabled; }; -struct Card { - int16 name; - uint16 zipModePlace; - bool hasData; - RivenScriptList scripts; -}; - struct ZipMode { Common::String name; uint16 id; @@ -128,7 +122,7 @@ public: Common::RandomSource *_rnd; RivenScriptManager *_scriptMan; - Card _cardData; + RivenCard *_card; GUI::Debugger *getDebugger(); @@ -152,7 +146,6 @@ private: // Stack/Card-related functions and variables uint16 _curCard; uint16 _curStack; - void loadCard(uint16); void handleEvents(); // Hotspot related functions and variables @@ -182,8 +175,7 @@ public: void refreshCard(); Common::String getName(uint16 nameResource, uint16 nameID); Common::String getStackName(uint16 stack) const; - void runCardScript(uint16 scriptType); - void runUpdateScreenScript() { runCardScript(kCardUpdateScript); } + void runUpdateScreenScript(); uint16 getCurCard() const { return _curCard; } uint16 getCurStack() const { return _curStack; } uint16 matchRMAPToCard(uint32); @@ -198,6 +190,7 @@ public: int32 getCurHotspot() const { return _curHotspot; } Common::String getHotspotName(uint16 hotspot); void updateCurrentHotspot(); + void addZipVisitedCard(uint16 cardId, uint16 cardNameId); // Variables RivenVariableMap _vars; |