diff options
author | Eugene Sandulenko | 2013-12-15 15:20:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-15 16:36:17 +0200 |
commit | c61db56a48ad44b0aca8ad83b61013c25c4ab468 (patch) | |
tree | 13bb0523fe8b301e31cc2a4818516e6b08492f44 /engines/fullpipe/scenes | |
parent | acc93389e9f0e08b1fef906c3cf9dc59b43f21ce (diff) | |
download | scummvm-rg350-c61db56a48ad44b0aca8ad83b61013c25c4ab468.tar.gz scummvm-rg350-c61db56a48ad44b0aca8ad83b61013c25c4ab468.tar.bz2 scummvm-rg350-c61db56a48ad44b0aca8ad83b61013c25c4ab468.zip |
FULLPIPE: Implement void sceneHandler05_handleUp() and void sceneHandler05_handleDown()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene05.cpp | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/engines/fullpipe/scenes/scene05.cpp b/engines/fullpipe/scenes/scene05.cpp index 4b61f5b187..cbeb6c4faf 100644 --- a/engines/fullpipe/scenes/scene05.cpp +++ b/engines/fullpipe/scenes/scene05.cpp @@ -121,12 +121,30 @@ void sceneHandler05_makeWackoFeedback() { } } +void sceneHandler05_resetTicks() { + if (g_fullpipe->_aniMan->_movement && (g_fullpipe->_aniMan->_movement->_id == MV_MANHDL_HANDLEUP + || g_fullpipe->_aniMan->_movement->_id == MV_MANHDL_HANDLEDOWN)) + g_vars->scene05_var01 = g_fullpipe->_updateTicks; + else + g_vars->scene05_var01 = 0; +} + +void sceneHandler05_genFlies() { + warning("STUB: sceneHandler05_genFlies()"); +} + void sceneHandler05_showHandle() { g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_HANDLE, -1)->show1(-1, -1, -1, 0); } void sceneHandler05_handleDown() { - warning("STUB: sceneHandler05_handleDown()"); + StaticANIObject *hatch = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BIGLUK, -1); + + hatch->changeStatics2(ST_BLK_CLOSED); + hatch->startAnim(MV_BLK_OPEN, 0, -1); + + sceneHandler05_resetTicks(); + sceneHandler05_genFlies(); } void sceneHandler05_hideHandle() { @@ -134,7 +152,12 @@ void sceneHandler05_hideHandle() { } void sceneHandler05_handleUp() { - warning("STUB: sceneHandler05_handleUp()"); + StaticANIObject *hatch = g_fullpipe->_currentScene->getStaticANIObject1ById(ANI_BIGLUK, -1); + + hatch->changeStatics2(ST_BLK_OPEN); + hatch->startAnim(MV_BLK_CLOSE, 0, -1); + + sceneHandler05_resetTicks(); } void sceneHandler05_testHatch(ExCommand *ex) { |