From 8304cfc20e6218f1d0406492030385530bd0a5a0 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 31 Aug 2016 21:50:26 +0200 Subject: FULLPIPE: Added more debugging to scene03 --- engines/fullpipe/scenes/scene03.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'engines') 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); -- cgit v1.2.3