diff options
author | Eugene Sandulenko | 2013-12-24 18:47:51 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-25 09:13:52 +0200 |
commit | ee8d6c47237a1c297cc84496e21f7e2cee52b915 (patch) | |
tree | 2a0bec95357341e77062a18d861ddd7e80406209 | |
parent | 2ad2eb12eea831ef0a781d837b772f8ac196ee76 (diff) | |
download | scummvm-rg350-ee8d6c47237a1c297cc84496e21f7e2cee52b915.tar.gz scummvm-rg350-ee8d6c47237a1c297cc84496e21f7e2cee52b915.tar.bz2 scummvm-rg350-ee8d6c47237a1c297cc84496e21f7e2cee52b915.zip |
FULLPIPE: Implement sceneHandler12()
-rw-r--r-- | engines/fullpipe/scenes/scene12.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene12.cpp b/engines/fullpipe/scenes/scene12.cpp index 60059519e6..c5e03917d5 100644 --- a/engines/fullpipe/scenes/scene12.cpp +++ b/engines/fullpipe/scenes/scene12.cpp @@ -29,6 +29,9 @@ #include "fullpipe/scenes.h" #include "fullpipe/scene.h" #include "fullpipe/floaters.h" +#include "fullpipe/messages.h" +#include "fullpipe/statics.h" +#include "fullpipe/behavior.h" namespace Fullpipe { @@ -44,4 +47,35 @@ void scene12_initScene() { g_fp->setObjectState("Муха_12", g_fp->_rnd->getRandomNumber(1)); } +void sceneHandler12_updateFloaters() { + warning("STUB: sceneHandler12_updateFloaters()"); +} + +int sceneHandler12(ExCommand *cmd) { + int res = 0; + + if (cmd->_messageKind == 17 && cmd->_messageNum == 33) { + if (g_fp->_aniMan2) { + if (g_fp->_aniMan2->_ox < g_fp->_sceneRect.left + 200) + g_fp->_currentScene->_x = g_fp->_aniMan2->_ox - g_fp->_sceneRect.left - 300; + + if (g_fp->_aniMan2->_ox > g_fp->_sceneRect.right - 200) + g_fp->_currentScene->_x = g_fp->_aniMan2->_ox - g_fp->_sceneRect.right + 300; + + res = 1; + } + + g_vars->scene12_flyCountdown--; + + if (!g_vars->scene12_flyCountdown) + sceneHandler12_updateFloaters(); + + g_fp->_floaters->update(); + + g_fp->_behaviorManager->updateBehaviors(); + } + + return res; +} + } // End of namespace Fullpipe |