aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-07 13:08:51 +0200
committerEugene Sandulenko2014-01-07 13:08:51 +0200
commit2cb81f50e500d37bf39c023eebc68e400114407c (patch)
tree9a412595ad216b186374a9b1067611f7895534c7 /engines/fullpipe
parent875b8f76f535c7f72525a0fd20eb676630f631dc (diff)
downloadscummvm-rg350-2cb81f50e500d37bf39c023eebc68e400114407c.tar.gz
scummvm-rg350-2cb81f50e500d37bf39c023eebc68e400114407c.tar.bz2
scummvm-rg350-2cb81f50e500d37bf39c023eebc68e400114407c.zip
FULLPIPE: Plug scene32 in
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/constants.h15
-rw-r--r--engines/fullpipe/module.mk1
-rw-r--r--engines/fullpipe/scenes.cpp17
-rw-r--r--engines/fullpipe/scenes.h17
-rw-r--r--engines/fullpipe/scenes/scene32.cpp8
5 files changed, 54 insertions, 4 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h
index 79f6a7f9e5..674d544f37 100644
--- a/engines/fullpipe/constants.h
+++ b/engines/fullpipe/constants.h
@@ -1054,6 +1054,21 @@ namespace Fullpipe {
#define SND_31_001 4377
#define ST_CTS31_GROWN2 2472
+// Scene 32
+#define ANI_BUTTON_32 5347
+#define ANI_CACTUS 2267
+#define ANI_FLAG 2257
+#define ANI_TESTO_BLUE 2659
+#define ANI_TESTO_GREEN 2662
+#define ANI_TESTO_ORANGE 2656
+#define MV_TSTG_FLOW 2663
+#define MV_TSTO_FLOW 2657
+#define QU_KBK32_START 4982
+#define QU_SC32_ENTERLIFT 2827
+#define QU_SC32_EXITLIFT 2828
+#define ST_BTN32_ON 5350
+#define ST_HDL_LAID 3039
+
// Scene 36
#define ANI_SCISSORS_36 2647
#define ANI_ROTOHRUST 2360
diff --git a/engines/fullpipe/module.mk b/engines/fullpipe/module.mk
index 55be5a7a34..a81ee36948 100644
--- a/engines/fullpipe/module.mk
+++ b/engines/fullpipe/module.mk
@@ -51,6 +51,7 @@ MODULE_OBJS = \
scenes/scene28.o \
scenes/scene30.o \
scenes/scene31.o \
+ scenes/scene32.o \
scenes/scene36.o \
scenes/sceneDbg.o
diff --git a/engines/fullpipe/scenes.cpp b/engines/fullpipe/scenes.cpp
index 127be3bbe7..42ff94f5eb 100644
--- a/engines/fullpipe/scenes.cpp
+++ b/engines/fullpipe/scenes.cpp
@@ -313,6 +313,23 @@ Vars::Vars() {
scene31_cactus = 0;
scene31_plusMinus = 0;
+ scene32_var01 = 0;
+ scene32_var02 = 0;
+ scene32_var03 = 0;
+ scene32_var04 = 0;
+ scene32_var05 = 0;
+ scene32_var06 = 0;
+ scene32_var07 = 0;
+ scene32_var08 = -1;
+ scene32_var09 = 0;
+ scene32_var10 = 0;
+ scene32_flag = 0;
+ scene32_cactus = 0;
+ scene32_massOrange = 0;
+ scene32_massBlue = 0;
+ scene32_massGreen = 0;
+ scene32_button = 0;
+
scene36_rotohrust = 0;
scene36_scissors = 0;
diff --git a/engines/fullpipe/scenes.h b/engines/fullpipe/scenes.h
index 0bfa9fa6ba..5a8746fd33 100644
--- a/engines/fullpipe/scenes.h
+++ b/engines/fullpipe/scenes.h
@@ -441,6 +441,23 @@ public:
StaticANIObject *scene31_cactus;
StaticANIObject *scene31_plusMinus;
+ int scene32_var01;
+ int scene32_var02;
+ int scene32_var03;
+ int scene32_var04;
+ int scene32_var05;
+ int scene32_var06;
+ int scene32_var07;
+ int scene32_var08;
+ int scene32_var09;
+ int scene32_var10;
+ StaticANIObject *scene32_flag;
+ StaticANIObject *scene32_cactus;
+ StaticANIObject *scene32_massOrange;
+ StaticANIObject *scene32_massBlue;
+ StaticANIObject *scene32_massGreen;
+ StaticANIObject *scene32_button;
+
StaticANIObject *scene36_rotohrust;
StaticANIObject *scene36_scissors;
diff --git a/engines/fullpipe/scenes/scene32.cpp b/engines/fullpipe/scenes/scene32.cpp
index ad2ac79809..90e5e77885 100644
--- a/engines/fullpipe/scenes/scene32.cpp
+++ b/engines/fullpipe/scenes/scene32.cpp
@@ -63,7 +63,7 @@ void scene32_initScene(Scene *sc) {
Scene *oldsc = g_fp->_currentScene;
StaticANIObject *ani;
- if (getObjectState(sO_ClockHandle) == getObjectEnumState(sO_ClockHandle, sO_In_32_Lies)) {
+ if (g_fp->getObjectState(sO_ClockHandle) == g_fp->getObjectEnumState(sO_ClockHandle, sO_In_32_Lies)) {
ani = sc->getStaticANIObject1ById(ANI_INV_HANDLE, -1);
if (ani) {
g_fp->_currentScene = sc;
@@ -71,7 +71,7 @@ void scene32_initScene(Scene *sc) {
ani->changeStatics2(ST_HDL_LAID);
}
} else {
- if (getObjectState(sO_ClockHandle) == getObjectEnumState(sO_ClockHandle, sO_In_32_Sticks)) {
+ if (g_fp->getObjectState(sO_ClockHandle) == g_fp->getObjectEnumState(sO_ClockHandle, sO_In_32_Sticks)) {
ani = sc->getStaticANIObject1ById(ANI_INV_HANDLE, -1);
g_fp->_currentScene = sc;
@@ -85,8 +85,8 @@ void scene32_initScene(Scene *sc) {
g_fp->_currentScene = oldsc;
- if (getObjectState(sO_Cube) == getObjectEnumState(sO_Cube, sO_In_32)) {
- MessageQueue *mq = new Message(sc->getMessageQueueById(QU_KBK32_START), 0, 0);
+ if (g_fp->getObjectState(sO_Cube) == g_fp->getObjectEnumState(sO_Cube, sO_In_32)) {
+ MessageQueue *mq = new MessageQueue(sc->getMessageQueueById(QU_KBK32_START), 0, 0);
mq->sendNextCommand();
}