diff options
author | Johannes Schickel | 2005-12-29 22:18:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2005-12-29 22:18:40 +0000 |
commit | d1622557d9122a8c07d9c8e003a109ee4d934e3e (patch) | |
tree | 018a4d2b889976cc25f13cc9bd1fc663d3555559 /kyra/script_v1.cpp | |
parent | e74799c32e57cd12839b8265ffbebfb7cb88e6d7 (diff) | |
download | scummvm-rg350-d1622557d9122a8c07d9c8e003a109ee4d934e3e.tar.gz scummvm-rg350-d1622557d9122a8c07d9c8e003a109ee4d934e3e.tar.bz2 scummvm-rg350-d1622557d9122a8c07d9c8e003a109ee4d934e3e.zip |
Implemented:
- cmd_pauseTicks
- cmd_setLogicPage
- cmd_fatPrint
- cmd_playWinterScrollSequence
Also implemented functionallity of the other three jewels of the amulet.
svn-id: r19847
Diffstat (limited to 'kyra/script_v1.cpp')
-rw-r--r-- | kyra/script_v1.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/kyra/script_v1.cpp b/kyra/script_v1.cpp index 28beb26353..1cbb354028 100644 --- a/kyra/script_v1.cpp +++ b/kyra/script_v1.cpp @@ -329,7 +329,12 @@ int KyraEngine::cmd_characterSays(ScriptState *script) { } int KyraEngine::cmd_pauseTicks(ScriptState *script) { - warning("STUB: cmd_pauseTicks"); + debug(3, "cmd_pauseTicks(0x%X) (%d, %d)", script, stackPos(0), stackPos(1)); + if (stackPos(1)) { + warning("STUB: special cmd_pauseTicks"); + } else { + delayWithTicks(stackPos(0)); + } return 0; } @@ -1292,12 +1297,14 @@ int KyraEngine::cmd_specialEventRemoveBrynnsNote(ScriptState *script) { } int KyraEngine::cmd_setLogicPage(ScriptState *script) { - warning("STUB: cmd_setLogicPage"); - return 0; + debug(3, "cmd_setLogicPage(0x%X) (%d)", script, stackPos(0)); + _screen->_curPage = stackPos(0); + return stackPos(0); } int KyraEngine::cmd_fatPrint(ScriptState *script) { - warning("STUB: cmd_fatPrint"); + debug(3, "cmd_fatPrint(0x%X) ('%s', %d, %d, %d, %d, %d)", script, stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5)); + printText(stackPosString(0), stackPos(1), stackPos(2), stackPos(3), stackPos(4), stackPos(5)); return 0; } @@ -1619,7 +1626,12 @@ int KyraEngine::cmd_playFluteAnimation(ScriptState *script) { } int KyraEngine::cmd_playWinterScrollSequence(ScriptState *script) { - warning("STUB: cmd_playWinterScrollSequence"); + debug(3, "cmd_playWinterScrollSequence(0x%X) (%d)", script, stackPos(0)); + if (!stackPos(0)) { + seq_winterScroll2(); + } else { + seq_winterScroll1(); + } return 0; } |