diff options
author | Eugene Sandulenko | 2016-08-31 21:50:26 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-31 21:50:26 +0200 |
commit | 8304cfc20e6218f1d0406492030385530bd0a5a0 (patch) | |
tree | d04cca6e79908dc74f033329d32693aa28b92e96 /engines/fullpipe/scenes | |
parent | 080bd94f2e16d7bc178f8a93109db29ce0805648 (diff) | |
download | scummvm-rg350-8304cfc20e6218f1d0406492030385530bd0a5a0.tar.gz scummvm-rg350-8304cfc20e6218f1d0406492030385530bd0a5a0.tar.bz2 scummvm-rg350-8304cfc20e6218f1d0406492030385530bd0a5a0.zip |
FULLPIPE: Added more debugging to scene03
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene03.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/fullpipe/scenes/scene03.cpp b/engines/fullpipe/scenes/scene03.cpp index e374c87971..1cb6390022 100644 --- a/engines/fullpipe/scenes/scene03.cpp +++ b/engines/fullpipe/scenes/scene03.cpp @@ -50,6 +50,16 @@ void FullpipeEngine::setSwallowedEggsState() { void scene03_initScene(Scene *sc) { debugC(1, kDebugSceneLogic, "scene03_initScene()"); + Inventory2 *inv = getGameLoaderInventory(); + +#if 0 + inv->addItem(ANI_INV_EGGAPL, 1); + inv->addItem(ANI_INV_EGGDOM, 1); + inv->addItem(ANI_INV_EGGCOIN, 1); + inv->addItem(ANI_INV_EGGBOOT, 1); + inv->addItem(ANI_INV_EGGGLS, 1); +#endif + g_vars->scene03_eggeater = sc->getStaticANIObject1ById(ANI_EGGEATER, -1); g_vars->scene03_domino = sc->getStaticANIObject1ById(ANI_DOMINO_3, -1); @@ -87,12 +97,16 @@ int scene03_updateCursor() { } void sceneHandler03_eaterFat() { + debugC(2, kDebugSceneLogic, "scene03: eaterFat"); + g_vars->scene03_eggeater->_flags &= 0xFF7F; g_vars->scene03_eggeater->startAnim(MV_EGTR_FATASK, 0, -1); } void sceneHandler03_swallowEgg(int item) { + debugC(2, kDebugSceneLogic, "scene03: swallowEgg"); + if (!g_vars->swallowedEgg1->_value.intValue) { g_vars->swallowedEgg1->_value.intValue = item; debugC(2, kDebugSceneLogic, "scene03: setting egg1: %d", g_vars->swallowedEgg1->_value.intValue); @@ -110,6 +124,8 @@ void sceneHandler03_swallowEgg(int item) { } void sceneHandler03_giveItem(ExCommand *ex) { + debugC(2, kDebugSceneLogic, "scene03: giveItem"); + if (ex->_parentId == ANI_INV_EGGAPL || ex->_parentId == ANI_INV_EGGDOM || ex->_parentId == ANI_INV_EGGCOIN || ex->_parentId == ANI_INV_EGGBOOT || ex->_parentId == ANI_INV_EGGGLS) @@ -121,6 +137,8 @@ int sceneHandler03_swallowedEgg1State() { } void sceneHandler03_giveCoin(ExCommand *ex) { + debugC(2, kDebugSceneLogic, "scene03: giveCoin"); + MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(ex->_parId); if (mq && mq->getCount() > 0) { @@ -149,6 +167,8 @@ void sceneHandler03_goLadder() { } void sceneHandler03_pushEggStack() { + debugC(2, kDebugSceneLogic, "scene03: pushEggStack"); + g_vars->swallowedEgg1->_value.intValue = g_vars->swallowedEgg2->_value.intValue; g_vars->swallowedEgg2->_value.intValue = g_vars->swallowedEgg3->_value.intValue; g_vars->swallowedEgg3->_value.intValue = 0; @@ -161,12 +181,16 @@ void sceneHandler03_pushEggStack() { } void sceneHandler03_releaseEgg() { + debugC(2, kDebugSceneLogic, "scene03: releaseEgg"); + g_vars->scene03_eggeater->_flags &= 0xFF7F; g_vars->scene03_eggeater->show1(-1, -1, -1, 0); } void sceneHandler03_takeEgg(ExCommand *ex) { + debugC(2, kDebugSceneLogic, "scene03: taking egg"); + MessageQueue *mq = g_fp->_globalMessageQueueList->getMessageQueueById(ex->_parId); if (mq && mq->getCount() > 0) { @@ -195,6 +219,9 @@ void sceneHandler03_takeEgg(ExCommand *ex) { } int sceneHandler03(ExCommand *ex) { + if (ex->_messageKind != 17 && ex->_messageNum != 33) + debugC(3, kDebugSceneLogic, "scene03: got message: kind %d, num: %d", ex->_messageKind, ex->_messageNum); + if (ex->_messageKind != 17) { if (ex->_messageKind == 57) sceneHandler03_giveItem(ex); |