FULLPIPE: More work on scene03

This commit is contained in:
Eugene Sandulenko 2013-11-05 23:57:22 +02:00
parent 660381de1b
commit 95c7cba9f4
2 changed files with 33 additions and 0 deletions

View File

@ -29,6 +29,11 @@ namespace Fullpipe {
#define ANI_DOMINO_3 2732
#define ANI_EGGEATER 334
#define ANI_IN1MAN 5110
#define ANI_INV_EGGAPL 1564
#define ANI_INV_EGGBOOT 1570
#define ANI_INV_EGGCOIN 1567
#define ANI_INV_EGGDOM 1561
#define ANI_INV_EGGGLS 1573
#define ANI_INV_MAP 5321
#define ANI_LIFTBUTTON 2751
#define ANI_MAN 322
@ -47,6 +52,7 @@ namespace Fullpipe {
#define MSG_SC1_SHOWOSK 1019
#define MSG_SC1_SHOWOSK2 468
#define MSG_SC1_UTRUBACLICK 1100
#define MV_EGTR_FATASK 5332
#define MV_IN1MAN_SLEEP 5111
#define MV_MAN_GOLADDER 451
#define MV_MAN_GOLADDER2 2844

View File

@ -1600,6 +1600,33 @@ int scene03_updateCursor() {
return g_fullpipe->_cursorId;
}
void sceneHandler03_eaterFat() {
g_vars->scene03_eggeater->_flags &= 0xFF7F;
g_vars->scene03_eggeater->startAnim(MV_EGTR_FATASK, 0, -1);
}
void sceneHandler03_swallowEgg(int item) {
if (!g_vars->swallowedEgg1->_value.intValue) {
g_vars->swallowedEgg1->_value.intValue = item;
} else if (!g_vars->swallowedEgg2->_value.intValue) {
g_vars->swallowedEgg2->_value.intValue = item;
} else if (!g_vars->swallowedEgg3->_value.intValue) {
g_vars->swallowedEgg3->_value.intValue = item;
g_fullpipe->setObjectState(sO_EggGulperGaveCoin, g_fullpipe->getObjectEnumState(sO_EggGulperGaveCoin, sO_Yes));
scene03_setEaterState();
}
}
void sceneHandler03_giveItem(ExCommand *ex) {
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)
sceneHandler03_swallowEgg(ex->_parentId);
}
int sceneHandler03(ExCommand *ex) {
#if 0
if (ex->_messageKind != 17) {