FULLPIPE: Implement sceneHandler04_dropBottle()

This commit is contained in:
Eugene Sandulenko 2013-11-29 09:29:34 +01:00
parent ba52b4aca7
commit be7325c309
4 changed files with 30 additions and 4 deletions

View File

@ -259,6 +259,7 @@ namespace Fullpipe {
#define ST_EGTR_MID1 2863
#define ST_EGTR_MID2 2869
#define ST_EGTR_SLIM 336
#define ST_HND_EMPTY 603
#define ST_IN1MAN_SLEEP 5112
#define ST_KZW_EMPTY 498
#define ST_LBN_0N 2832

View File

@ -96,6 +96,7 @@ Vars::Vars() {
scene04_var19 = 0;
scene04_var20 = 0;
scene04_var24 = 0;
scene04_var26 = 0;
selector = 0;
}

View File

@ -90,8 +90,8 @@ public:
Common::Point scene04_jumpRotateKozyawki[20];
Common::List<StaticANIObject *> scene04_kozyawkiObjList;
Common::Array<GameObject *> scene04_bottleObjList;
Common::Array<StaticANIObject *> scene04_kozyawkiAni;
Common::List<GameObject *> scene04_bottleObjList;
Common::List<StaticANIObject *> scene04_kozyawkiAni;
int scene04_ladder;
bool scene04_coinPut;
@ -122,6 +122,7 @@ public:
int scene04_var19;
int scene04_var20;
StaticANIObject *scene04_var24;
int scene04_var26;
PictureObject *selector;
};

View File

@ -160,7 +160,7 @@ void scene04_initScene(Scene *sc) {
}
g_vars->scene04_var02 = 0;
g_vars->scene04_soundPlaying = 0;
g_vars->scene04_soundPlaying = false;
g_vars->scene04_var04 = 0;
g_vars->scene04_walkingKozyawka = 0;
g_vars->scene04_var06 = 2;
@ -283,7 +283,30 @@ void sceneHandler04_clickPlank() {
}
void sceneHandler04_dropBottle() {
warning("sceneHandler04_dropBottle()");
g_vars->scene04_var12 = 1;
g_vars->scene04_var26 = 10;
g_vars->scene04_var06 = 0;
while (g_vars->scene04_kozyawkiAni.size()) {
StaticANIObject *koz = g_vars->scene04_kozyawkiAni.front();
g_vars->scene04_kozyawkiAni.pop_front();
for (Common::List<GameObject *>::iterator it = g_vars->scene04_bottleObjList.begin(); it != g_vars->scene04_bottleObjList.end(); ++it)
if (*it == koz) {
g_vars->scene04_bottleObjList.erase(it);
break;
}
koz->queueMessageQueue(0);
koz->hide();
g_vars->scene04_kozyawkiObjList.push_back(koz);
}
g_vars->scene04_hand->changeStatics2(ST_HND_EMPTY);
g_vars->scene04_hand->setOXY(429, 21);
g_vars->scene04_hand->_priority = 15;
}
void sceneHandler04_gotoLadder(int par) {