aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-27 21:37:07 +0200
committerEugene Sandulenko2013-12-27 21:37:07 +0200
commit74199c2f19bbbd2687993afae6f90a0a9247be07 (patch)
tree7ad5af61dd36066be4f2818fcdfdf600c7c7fcfd /engines/fullpipe/scenes
parentea66761b0466a8ba58fa6b1d9650fa518c8ea513 (diff)
downloadscummvm-rg350-74199c2f19bbbd2687993afae6f90a0a9247be07.tar.gz
scummvm-rg350-74199c2f19bbbd2687993afae6f90a0a9247be07.tar.bz2
scummvm-rg350-74199c2f19bbbd2687993afae6f90a0a9247be07.zip
FULLPIPE: Implement sceneHandler11_manToSwing()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene11.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene11.cpp b/engines/fullpipe/scenes/scene11.cpp
index 388421fc22..b3dc4a6de1 100644
--- a/engines/fullpipe/scenes/scene11.cpp
+++ b/engines/fullpipe/scenes/scene11.cpp
@@ -163,8 +163,41 @@ void sceneHandler11_hitMan() {
}
}
+int sceneHandler11_updateScreenCallback() {
+ int res = g_fp->drawArcadeOverlay(g_vars->scene11_var02);
+
+ if (!res)
+ g_fp->_updateScreenCallback = 0;
+
+ return res;
+}
+
void sceneHandler11_manToSwing() {
- warning("STUB: sceneHandler11_manToSwing()");
+ g_vars->scene11_var02 = 1;
+
+ getCurrSceneSc2MotionController()->clearEnabled();
+ getGameLoaderInteractionController()->disableFlag24();
+
+ g_fp->_aniMan2->hide();
+
+ g_vars->scene11_var15 = 0;
+ g_vars->scene11_var12 = 1.9849218;
+
+ g_vars->scene11_dudeOnSwing->_flags &= 0xFFFB;
+ g_vars->scene11_dudeOnSwing = g_fp->_currentScene->getStaticANIObject1ById(ANI_MAN11, -1);
+ g_vars->scene11_dudeOnSwing->_statics = g_vars->scene11_dudeOnSwing->getStaticsById(ST_MAN11_EMPTY);
+ g_vars->scene11_dudeOnSwing->_movement = 0;
+ g_vars->scene11_dudeOnSwing->show1(690, 215, MV_MAN11_SWING_0, 0);
+ g_vars->scene11_dudeOnSwing->_priority = 20;
+ g_vars->scene11_dudeOnSwing->startAnim(MV_MAN11_SWING_0, 0, -1);
+ g_vars->scene11_dudeOnSwing->_movement->setDynamicPhaseIndex(45);
+
+ g_vars->scene11_var01.addItem(g_fp->_aniMan->_id);
+
+ g_fp->_currentScene->_x = 1400 - g_fp->_sceneRect.right;
+
+ g_vars->scene11_var03 = 1;
+ g_fp->_updateScreenCallback = sceneHandler11_updateScreenCallback;
}
void sceneHandler11_putBoot() {