diff options
author | Bastien Bouclet | 2017-07-01 22:44:22 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | ea303ab682c9d8167f827e0a84cc72336ce2cc42 (patch) | |
tree | 0366282afbe39ae2dca88be92c50b7d848a71ed1 /engines/mohawk/riven_scripts.h | |
parent | ee70244fbfb981fc16c77b10bab6546cf5e5cb0d (diff) | |
download | scummvm-rg350-ea303ab682c9d8167f827e0a84cc72336ce2cc42.tar.gz scummvm-rg350-ea303ab682c9d8167f827e0a84cc72336ce2cc42.tar.bz2 scummvm-rg350-ea303ab682c9d8167f827e0a84cc72336ce2cc42.zip |
MOHAWK: Switch timers to script commands
Diffstat (limited to 'engines/mohawk/riven_scripts.h')
-rw-r--r-- | engines/mohawk/riven_scripts.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.h b/engines/mohawk/riven_scripts.h index cac01fbcea..37bdc062d4 100644 --- a/engines/mohawk/riven_scripts.h +++ b/engines/mohawk/riven_scripts.h @@ -23,6 +23,8 @@ #ifndef RIVEN_SCRIPTS_H #define RIVEN_SCRIPTS_H +#include "mohawk/riven_stack.h" + #include "common/str-array.h" #include "common/ptr.h" #include "common/textconsole.h" @@ -91,6 +93,7 @@ enum RivenCommandType { class MohawkEngine_Riven; class RivenCommand; class RivenScript; +class RivenScriptManager; struct MLSTRecord; typedef Common::SharedPtr<RivenScript> RivenScriptPtr; @@ -362,6 +365,18 @@ private: bool _byStackId; // Otherwise by stack name id }; +class RivenTimerCommand : public RivenCommand { +public: + RivenTimerCommand(MohawkEngine_Riven *vm, const Common::SharedPtr<RivenStack::TimerProc> &timerProc); + + // RivenCommand API + virtual void dump(byte tabs) override; + virtual void execute() override; + +private: + Common::SharedPtr<RivenStack::TimerProc> _timerProc; +}; + } // End of namespace Mohawk #undef DECLARE_OPCODE |