aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-28 22:22:32 +0200
committerEugene Sandulenko2013-12-28 22:22:32 +0200
commite488d35454e68c5b303630f45665a2d54a7e6290 (patch)
treecd17916faf494989083aeab80b77412082c69257 /engines/fullpipe/scenes
parentd751e719acfadfda42cba096bbcec8ff73030823 (diff)
downloadscummvm-rg350-e488d35454e68c5b303630f45665a2d54a7e6290.tar.gz
scummvm-rg350-e488d35454e68c5b303630f45665a2d54a7e6290.tar.bz2
scummvm-rg350-e488d35454e68c5b303630f45665a2d54a7e6290.zip
FULLPIPE: Implement sceneHandler24()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene24.cpp33
1 files changed, 28 insertions, 5 deletions
diff --git a/engines/fullpipe/scenes/scene24.cpp b/engines/fullpipe/scenes/scene24.cpp
index dc92044077..4b141a3db6 100644
--- a/engines/fullpipe/scenes/scene24.cpp
+++ b/engines/fullpipe/scenes/scene24.cpp
@@ -37,11 +37,6 @@
namespace Fullpipe {
void scene24_initScene(Scene *sc) {
- g_vars->scene24_var01 = 200;
- g_vars->scene24_var02 = 200;
- g_vars->scene24_var03 = 300;
- g_vars->scene24_var04 = 300;
-
g_vars->scene24_water = sc->getStaticANIObject1ById(ANI_WATER24, -1);
g_vars->scene24_jet = sc->getStaticANIObject1ById(ANI_JET24, -1);
g_vars->scene24_drop = sc->getStaticANIObject1ById(ANI_DROP_24, -1);
@@ -103,4 +98,32 @@ void scene24_setPoolState() {
}
}
+int sceneHandler24(ExCommand *cmd) {
+ if (cmd->_messageKind == 17 && cmd->_messageNum == 33) {
+ if (g_fp->_aniMan2) {
+ int x = g_fp->_aniMan2->_ox;
+
+ if (x < g_fp->_sceneRect.left + 200) {
+ g_fp->_currentScene->_x = x - 300 - g_fp->_sceneRect.left;
+ }
+ if (x > g_fp->_sceneRect.right - 200)
+ g_fp->_currentScene->_x = x + 300 - g_fp->_sceneRect.right;
+ }
+
+ if (g_vars->scene24_var07 && !g_vars->scene24_water->_movement) {
+ if (g_vars->scene24_var06)
+ g_vars->scene24_water->startAnim(MV_WTR24_FLOWLOWER, 0, -1);
+ else
+ g_vars->scene24_water->startAnim(MV_WTR24_FLOW, 0, -1);
+ }
+
+ if (g_vars->scene24_var05 && !g_vars->scene24_jet->_movement)
+ g_vars->scene24_jet->startAnim(MV_JET24_FLOW, 0, -1);
+
+ g_fp->_behaviorManager->updateBehaviors();
+ }
+
+ return 0;
+}
+
} // End of namespace Fullpipe