mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
FULLPIPE: Implement sceneHandler04_dropBottle()
This commit is contained in:
parent
ba52b4aca7
commit
be7325c309
@ -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
|
||||
|
@ -96,6 +96,7 @@ Vars::Vars() {
|
||||
scene04_var19 = 0;
|
||||
scene04_var20 = 0;
|
||||
scene04_var24 = 0;
|
||||
scene04_var26 = 0;
|
||||
|
||||
selector = 0;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user