diff options
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index 8c5cab17f4..a9b64d6ce7 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -817,4 +817,19 @@ void RivenStackChangeCommand::dump(byte tabs) { debugN("changeStack(%d, %d);\n", _stackId, _cardId); } +RivenTimerCommand::RivenTimerCommand(MohawkEngine_Riven *vm, const Common::SharedPtr<RivenStack::TimerProc> &timerProc) : + RivenCommand(vm), + _timerProc(timerProc) { + +} + +void RivenTimerCommand::execute() { + (*_timerProc)(); +} + +void RivenTimerCommand::dump(byte tabs) { + printTabs(tabs); + debugN("doTimer();\n"); +} + } // End of namespace Mohawk |