diff options
author | Eugene Sandulenko | 2013-11-20 12:25:03 -0800 |
---|---|---|
committer | Eugene Sandulenko | 2013-11-20 12:25:03 -0800 |
commit | 120cecdfe4aa5106e9096828e2a34e0bd6a58c9f (patch) | |
tree | c91528fa8237ab3b0f14898462f2123ba4468d65 /engines/fullpipe/scenes.cpp | |
parent | b255148097bc8a4daa214d28e734954c6a282011 (diff) | |
download | scummvm-rg350-120cecdfe4aa5106e9096828e2a34e0bd6a58c9f.tar.gz scummvm-rg350-120cecdfe4aa5106e9096828e2a34e0bd6a58c9f.tar.bz2 scummvm-rg350-120cecdfe4aa5106e9096828e2a34e0bd6a58c9f.zip |
FULLPIPE: Move scene02 to separate file
Diffstat (limited to 'engines/fullpipe/scenes.cpp')
-rw-r--r-- | engines/fullpipe/scenes.cpp | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp index 27b8c29074..877bdfe36d 100644 --- a/engines/fullpipe/scenes.cpp +++ b/engines/fullpipe/scenes.cpp @@ -681,104 +681,6 @@ void FullpipeEngine::setSwallowedEggsState() { g_vars->swallowedEgg3->_value.intValue = 0; } -void scene02_initScene(Scene *sc) { - g_vars->scene02_guvTheDrawer = sc->getStaticANIObject1ById(ANI_DADAYASHIK, -1); - - if (g_fullpipe->getObjectState(sO_GuvTheDrawer) == g_fullpipe->getObjectEnumState(sO_GuvTheDrawer, sO_Sleeping)) { - Scene *s = g_fullpipe->_currentScene; - - g_fullpipe->_currentScene = sc; - g_vars->scene02_guvTheDrawer->changeStatics2(ST_DYAS_LIES); - g_fullpipe->_currentScene = s; - } - - g_vars->scene02_boxDelay = 0; - - StaticANIObject *box = sc->getStaticANIObject1ById(ANI_SC2_BOX, -1); - - if (box && box->_flags & 4) { - g_vars->scene02_boxOpen = false; - } else { - g_vars->scene02_boxOpen = true; - g_vars->scene02_boxDelay = 100 * g_fullpipe->_rnd->getRandomNumber(32767) + 150; - } - - g_fullpipe->_floaters->init(g_fullpipe->_gameLoader->_gameVar->getSubVarByName("SC_2")); -} - -void sceneHandler02_ladderClick() { - handleObjectInteraction(g_fullpipe->_aniMan2, g_fullpipe->_currentScene->getPictureObjectById(PIC_SC2_DTRUBA, 0), 0); -} - -void sceneHandler02_showLadder() { - g_fullpipe->_currentScene->getPictureObjectById(PIC_SC2_LADDER, 0)->_flags |= 4; -} - -void sceneHandler02_hideLadder() { - g_fullpipe->_currentScene->getPictureObjectById(PIC_SC2_LADDER, 0)->_flags &= 0xfffb; - g_fullpipe->_aniMan2->_priority = 25; -} - -int sceneHandler02(ExCommand *ex) { - int res = 0; - - if (ex->_messageKind != 17) - return 0; - - switch(ex->_messageNum) { - case MSG_SC2_LADDERCLICK: - sceneHandler02_ladderClick(); - return 0; - - case MSG_SC2_SHOWLADDER: - sceneHandler02_showLadder(); - return 0; - - case MSG_SC2_PUTMANUP: - g_fullpipe->_aniMan2->_priority = 0; - return 0; - - case MSG_SC2_HIDELADDER: - sceneHandler02_hideLadder(); - return 0; - - case 33: - if (g_fullpipe->_aniMan2) { - if (g_fullpipe->_aniMan2->_ox < g_fullpipe->_sceneRect.left + 200) - g_fullpipe->_currentScene->_x = g_fullpipe->_aniMan2->_ox - g_fullpipe->_sceneRect.left - 300; - - if (g_fullpipe->_aniMan2->_ox > g_fullpipe->_sceneRect.right - 200) - g_fullpipe->_currentScene->_x = g_fullpipe->_aniMan2->_ox - g_fullpipe->_sceneRect.right + 300; - - res = 1; - } - - if (g_vars->scene02_boxOpen) { - if (g_vars->scene02_boxDelay >= 1) { - --g_vars->scene02_boxDelay; - } else if (g_fullpipe->_floaters->_array2.size() >= 1) { - if (g_fullpipe->_floaters->_array2[0]->val5 == -50) { - g_fullpipe->_floaters->stopAll(); - g_vars->scene02_boxOpen = false; - g_vars->scene02_boxDelay = 100 * g_fullpipe->_rnd->getRandomNumber(32767) + 150; - } else { - g_fullpipe->_floaters->_array2[0]->val3 = -50; - } - } else { - g_fullpipe->_floaters->genFlies(g_fullpipe->_currentScene, g_fullpipe->_rnd->getRandomNumber(700) + 100, -50, 0, 0); - g_vars->scene02_boxDelay = 500 * g_fullpipe->_rnd->getRandomNumber(32767) + 1000; - } - } - - g_fullpipe->_floaters->update(); - g_fullpipe->_behaviorManager->updateBehaviors(); - - g_fullpipe->startSceneTrack(); - } - - return res; -} - void scene03_initScene(Scene *sc) { g_vars->scene03_eggeater = sc->getStaticANIObject1ById(ANI_EGGEATER, -1); g_vars->scene03_domino = sc->getStaticANIObject1ById(ANI_DOMINO_3, -1); |