From 649e275ca622b0e6b84181cb23dfc714270346d3 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 1 Sep 2010 13:28:12 +0000 Subject: MOHAWK: Implement xbookclick It is now possible to trap Gehn in the trap book. Side note: Riven is now completable from the beginning provided you know the D'ni number system already (and the marble puzzle is just hacked to always work). svn-id: r52482 --- engines/mohawk/riven_scripts.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/mohawk/riven_scripts.h') diff --git a/engines/mohawk/riven_scripts.h b/engines/mohawk/riven_scripts.h index 5187bbde08..a85cde1702 100644 --- a/engines/mohawk/riven_scripts.h +++ b/engines/mohawk/riven_scripts.h @@ -62,6 +62,7 @@ public: uint16 getParentStack() { return _parentStack; } uint16 getParentCard() { return _parentCard; } bool isRunning() { return _isRunning; } + void stopRunning() { _continueRunning = false; } static uint32 calculateScriptSize(Common::SeekableReadStream *script); @@ -76,8 +77,8 @@ private: MohawkEngine_Riven *_vm; Common::SeekableReadStream *_stream; - uint16 _scriptType, _parentStack, _parentCard, _parentHotspot; - bool _isRunning; + uint16 _scriptType, _parentStack, _parentCard; + bool _isRunning, _continueRunning; void dumpCommands(Common::StringArray varNames, Common::StringArray xNames, byte tabs); void processCommands(bool runCommands); @@ -131,6 +132,7 @@ public: ~RivenScriptManager(); RivenScriptList readScripts(Common::SeekableReadStream *stream, bool garbageCollect = true); + void stopAllScripts(); private: void unloadUnusedScripts(); -- cgit v1.2.3