aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-02-23 23:40:23 +0200
committerEugene Sandulenko2014-02-23 23:45:12 +0200
commit5e8559e23ff8d1979ca216938b3aa29426f5c94a (patch)
tree387a04089499cd74836ea49c99fd87b1551341fd /engines
parent0593f434afcd772e6f171cc466d8ad714146e864 (diff)
downloadscummvm-rg350-5e8559e23ff8d1979ca216938b3aa29426f5c94a.tar.gz
scummvm-rg350-5e8559e23ff8d1979ca216938b3aa29426f5c94a.tar.bz2
scummvm-rg350-5e8559e23ff8d1979ca216938b3aa29426f5c94a.zip
FULLPIPE: Started renaming in scene09
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scenes.cpp8
-rw-r--r--engines/fullpipe/scenes.h8
-rw-r--r--engines/fullpipe/scenes/scene09.cpp40
3 files changed, 28 insertions, 28 deletions
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 6fd3989a3e..c8c69b49ec 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -157,12 +157,12 @@ Vars::Vars() {
scene08_manOffsetY = 0;
scene09_flyingBall = 0;
- scene09_var05 = 0;
- scene09_glotatel = 0;
+ scene09_numSwallenBalls = 0;
+ scene09_gulper = 0;
scene09_spitter = 0;
scene09_grit = 0;
- scene09_var02 = 0;
- scene09_var08 = 1;
+ scene09_dudeY = 0;
+ scene09_gulperIsPresent = true;
scene09_var09 = 0;
scene09_var10 = -1;
scene09_var11 = -1;
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index 32dfb96c3f..7211a61d22 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -348,13 +348,13 @@ public:
bool scene08_stairsVisible;
int scene08_manOffsetY;
- int scene09_var02;
+ int scene09_dudeY;
StaticANIObject *scene09_flyingBall;
- int scene09_var05;
- StaticANIObject *scene09_glotatel;
+ int scene09_numSwallenBalls;
+ StaticANIObject *scene09_gulper;
StaticANIObject *scene09_spitter;
StaticANIObject *scene09_grit;
- int scene09_var08;
+ bool scene09_gulperIsPresent;
int scene09_var09;
int scene09_var10;
int scene09_var11;
diff --git a/engines/fullpipe/scenes/scene09.cpp b/engines/fullpipe/scenes/scene09.cpp
index 9bff577885..39fc6497eb 100644
--- a/engines/fullpipe/scenes/scene09.cpp
+++ b/engines/fullpipe/scenes/scene09.cpp
@@ -59,11 +59,11 @@ void scene09_setupGrit(Scene *sc) {
void scene09_initScene(Scene *sc) {
g_vars->scene09_flyingBall = 0;
- g_vars->scene09_var05 = 0;
- g_vars->scene09_glotatel = sc->getStaticANIObject1ById(ANI_GLOTATEL, -1);
+ g_vars->scene09_numSwallenBalls = 0;
+ g_vars->scene09_gulper = sc->getStaticANIObject1ById(ANI_GLOTATEL, -1);
g_vars->scene09_spitter = sc->getStaticANIObject1ById(ANI_PLEVATEL, -1);
g_vars->scene09_grit = sc->getStaticANIObject1ById(ANI_GRIT_9, -1);
- g_vars->scene09_var08 = 1;
+ g_vars->scene09_gulperIsPresent = true;
g_vars->scene09_var09 = 0;
g_vars->scene09_var10 = -1;
g_vars->scene09_var11 = -1;
@@ -232,7 +232,7 @@ int scene09_updateCursor() {
g_fp->_updateScreenCallback = sceneHandler09_updateScreenCallback;
} else {
if (g_fp->_objectIdAtCursor == PIC_SC9_LADDER_R && g_fp->_cursorId == PIC_CSR_ITN)
- g_fp->_cursorId = (g_vars->scene09_var02 < 350) ? PIC_CSR_GOD : PIC_CSR_GOU;
+ g_fp->_cursorId = (g_vars->scene09_dudeY < 350) ? PIC_CSR_GOD : PIC_CSR_GOU;
}
} else {
g_fp->_cursorId = PIC_CSR_ITN;
@@ -242,14 +242,14 @@ int scene09_updateCursor() {
}
void sceneHandler09_winArcade() {
- if (g_vars->scene09_glotatel->_flags & 4) {
- g_vars->scene09_glotatel->changeStatics2(ST_GLT_SIT);
- g_vars->scene09_glotatel->startAnim(MV_GLT_FLYAWAY, 0, -1);
+ if (g_vars->scene09_gulper->_flags & 4) {
+ g_vars->scene09_gulper->changeStatics2(ST_GLT_SIT);
+ g_vars->scene09_gulper->startAnim(MV_GLT_FLYAWAY, 0, -1);
g_fp->setObjectState(sO_Jug, g_fp->getObjectEnumState(sO_Jug, sO_Unblocked));
g_fp->setObjectState(sO_RightStairs_9, g_fp->getObjectEnumState(sO_RightStairs_9, sO_IsOpened));
- g_vars->scene09_var08 = 0;
+ g_vars->scene09_gulperIsPresent = false;
}
}
@@ -343,10 +343,10 @@ void sceneHandler09_eatBall() {
g_vars->scene09_var07.field_8 = ball;
g_vars->scene09_flyingBall = 0;
- g_vars->scene09_var05++;
+ g_vars->scene09_numSwallenBalls++;
- if (g_vars->scene09_var05 >= 3) {
- MessageQueue *mq = g_vars->scene09_glotatel->getMessageQueue();
+ if (g_vars->scene09_numSwallenBalls >= 3) {
+ MessageQueue *mq = g_vars->scene09_gulper->getMessageQueue();
if (mq) {
ExCommand *ex = new ExCommand(ANI_GLOTATEL, 1, MV_GLT_FLYAWAY, 0, 0, 0, 1, 0, 0, 0);
@@ -358,7 +358,7 @@ void sceneHandler09_eatBall() {
g_fp->setObjectState(sO_Jug, g_fp->getObjectEnumState(sO_Jug, sO_Unblocked));
g_fp->setObjectState(sO_RightStairs_9, g_fp->getObjectEnumState(sO_RightStairs_9, sO_IsOpened));
- g_vars->scene09_var08 = 0;
+ g_vars->scene09_gulperIsPresent = false;
}
}
}
@@ -447,17 +447,17 @@ void sceneHandler09_limitHangerPhase() {
}
void sceneHandler09_collideBall(Ball *ball) {
- if (g_vars->scene09_var08) {
+ if (g_vars->scene09_gulperIsPresent) {
g_vars->scene09_flyingBall = ball->ani;
- if (g_vars->scene09_glotatel) {
- g_vars->scene09_glotatel->changeStatics2(ST_GLT_SIT);
+ if (g_vars->scene09_gulper) {
+ g_vars->scene09_gulper->changeStatics2(ST_GLT_SIT);
MessageQueue *mq = new MessageQueue(g_fp->_currentScene->getMessageQueueById(QU_SC9_EATBALL), 0, 0);
mq->setFlags(mq->getFlags() | 1);
- if (!mq->chain(g_vars->scene09_glotatel))
+ if (!mq->chain(g_vars->scene09_gulper))
delete mq;
}
}
@@ -541,9 +541,9 @@ void sceneHandler09_checkHangerCollide() {
ball->ani->setOXY(newx, ball->ani->_oy);
if (newx <= 1398 || g_vars->scene09_flyingBall) {
- if (g_vars->scene09_var08)
+ if (g_vars->scene09_gulperIsPresent)
goto LABEL_11;
- } else if (g_vars->scene09_var08) {
+ } else if (g_vars->scene09_gulperIsPresent) {
sceneHandler09_collideBall(ball);
continue;
}
@@ -623,7 +623,7 @@ int sceneHandler09(ExCommand *cmd) {
break;
case MSG_SC9_FLOWN:
- g_vars->scene09_var08 = 0;
+ g_vars->scene09_gulperIsPresent = false;
break;
case MSG_SC9_EATBALL:
@@ -641,7 +641,7 @@ int sceneHandler09(ExCommand *cmd) {
if (g_fp->_aniMan2) {
int x = g_fp->_aniMan2->_ox;
- g_vars->scene09_var02 = g_fp->_aniMan2->_oy;
+ g_vars->scene09_dudeY = g_fp->_aniMan2->_oy;
if (x < g_fp->_sceneRect.left + 200)
g_fp->_currentScene->_x = x - g_fp->_sceneRect.left - 300;