aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-01 00:19:32 +0200
committerEugene Sandulenko2014-01-01 00:19:32 +0200
commit79b8e0078b86df238dcff5b3e5a1feb49664d490 (patch)
tree9eeddc39212001d888c2923594c04b5a0003fb76
parent05efe75ebed62f855674724749228d0607cf9333 (diff)
downloadscummvm-rg350-79b8e0078b86df238dcff5b3e5a1feb49664d490.tar.gz
scummvm-rg350-79b8e0078b86df238dcff5b3e5a1feb49664d490.tar.bz2
scummvm-rg350-79b8e0078b86df238dcff5b3e5a1feb49664d490.zip
FULLPIPE: Implement sceneHandler14_winArcade()
-rw-r--r--engines/fullpipe/scenes/scene14.cpp85
1 files changed, 59 insertions, 26 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp
index 8ba7e1615e..c3e0269f92 100644
--- a/engines/fullpipe/scenes/scene14.cpp
+++ b/engines/fullpipe/scenes/scene14.cpp
@@ -279,8 +279,66 @@ void sceneHandler14_grandmaJump() {
}
}
+void sceneHandler14_endArcade() {
+ g_vars->scene14_var03 = 0;
+
+ setInputDisabled(0);
+
+ getGameLoaderInteractionController()->enableFlag24();
+ getCurrSceneSc2MotionController()->setEnabled();
+
+ BehaviorEntryInfo *beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_BLINK);
+ if (beh)
+ beh->_percent = 327;
+
+ beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_THROW);
+ if (beh)
+ beh->_percent = 0;
+
+ g_vars->scene14_var01 = 200;
+ g_vars->scene14_var02 = 200;
+
+ g_fp->_aniMan2 = g_fp->_aniMan;
+
+ g_vars->scene14_var07 = 300;
+ g_vars->scene14_var08 = 300;
+}
+
void sceneHandler14_winArcade() {
- warning("STUB: sceneHandler14_winArcade()");
+ if (g_vars->scene14_var03) {
+ if (g_vars->scene14_var04) {
+ g_fp->_aniMan->changeStatics2(ST_MAN_RIGHT|0x4000);
+
+ g_vars->scene14_var04 = 0;
+ }
+
+ if (g_vars->scene14_var10) {
+ g_vars->scene14_var11.push_back(g_vars->scene14_var10);
+
+ g_vars->scene14_var10->_flags &= 0xFFFB;
+ g_vars->scene14_var10 = 0;
+ }
+
+ g_vars->scene14_var05 = 0;
+
+ sceneHandler14_endArcade();
+
+ g_vars->scene14_var13 = 0;
+
+ if (g_fp->getObjectState(sO_Grandma) == g_fp->getObjectEnumState(sO_Grandma, sO_In_14)) {
+ g_fp->setObjectState(sO_Grandma, g_fp->getObjectEnumState(sO_Grandma, sO_In_15));
+ g_vars->scene14_grandma->changeStatics2(ST_GMA_SIT);
+ g_vars->scene14_grandma->_flags &= 0xFFFB;
+ }
+
+ if (g_fp->_currentScene->_messageQueueId) {
+ MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(g_fp->_currentScene->_messageQueueId);
+ if (mq)
+ delete mq;
+
+ g_fp->_currentScene->_messageQueueId = 0;
+ }
+ }
}
void sceneHandler14_showBallLast() {
@@ -322,31 +380,6 @@ void sceneHandler14_startArcade() {
g_fp->_updateScreenCallback = sceneHandler14_updateScreenCallback;
}
-void sceneHandler14_endArcade() {
- g_vars->scene14_var03 = 0;
-
- setInputDisabled(0);
-
- getGameLoaderInteractionController()->enableFlag24();
- getCurrSceneSc2MotionController()->setEnabled();
-
- BehaviorEntryInfo *beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_BLINK);
- if (beh)
- beh->_percent = 327;
-
- beh = g_fp->_behaviorManager->getBehaviorEntryInfoByMessageQueueDataId(g_vars->scene14_grandma, ST_GMA_SIT, QU_GMA_THROW);
- if (beh)
- beh->_percent = 0;
-
- g_vars->scene14_var01 = 200;
- g_vars->scene14_var02 = 200;
-
- g_fp->_aniMan2 = g_fp->_aniMan;
-
- g_vars->scene14_var07 = 300;
- g_vars->scene14_var08 = 300;
-}
-
void sceneHandler14_sub01() {
warning("STUB: sceneHandler14_sub01()");
}