Skip to content

Commit

Permalink
FULLPIPE: Add more code to scene17
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 1, 2014
1 parent 95c17e2 commit e92dc69
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
10 changes: 9 additions & 1 deletion engines/fullpipe/constants.h
Expand Up @@ -690,6 +690,9 @@ namespace Fullpipe {

// Scene 17
#define ANI_HAND17 1446
#define ANI_INV_SUGAR 1410
#define ANI_JET_17 2746
#define ANI_MUG_17 2737
#define MSG_SC17_DROP 3414
#define MSG_SC17_FILLBOTTLE 1436
#define MSG_SC17_HIDESUGAR 1417
Expand All @@ -702,7 +705,13 @@ namespace Fullpipe {
#define QU_HND17_ASK 1456
#define QU_HND17_ATTRACT 1455
#define QU_HND17_TOCYCLE 1454
#define QU_JET17_DROP 3295
#define QU_SC17_FILLMUG_DROP 3415
#define QU_SC17_SHOWBOTTLE 1429
#define QU_SC17_SHOWSUGAR 1415
#define ST_HND17_ATTRACT 1451
#define ST_HND17_EMPTY 1448
#define ST_MUG17_EMPTY 2739

// Scene 24
#define ANI_DROP_24 3505
Expand All @@ -719,7 +728,6 @@ namespace Fullpipe {
#define SND_24_006 4041
#define SND_24_007 4042
#define ST_DRP24_EMPTY 3507
#define ST_HND17_ATTRACT 1451
#define ST_WTR24_FLOWLOWER 1843

// Debug scene
Expand Down
22 changes: 18 additions & 4 deletions engines/fullpipe/scenes/scene17.cpp
Expand Up @@ -49,7 +49,16 @@ void scene17_initScene(Scene *sc) {
}

void sceneHandler17_drop() {
warning("STUB: sceneHandler17_drop()");
StaticANIObject *mug = g_fp->_currentScene->getStaticANIObject1ById(ANI_MUG_17, -1);
StaticANIObject *jet = g_fp->_currentScene->getStaticANIObject1ById(ANI_JET_17, -1);

if (mug && mug->_flags & 4) {
mug->changeStatics2(ST_MUG17_EMPTY);
chainQueue(QU_SC17_FILLMUG_DROP, 0);
} else if (jet) {
jet->queueMessageQueue(0);
chainQueue(QU_JET17_DROP, 0);
}
}

void sceneHandler17_fillBottle() {
Expand All @@ -61,15 +70,20 @@ void sceneHandler17_testTruba() {
}

void sceneHandler17_showBottle() {
warning("STUB: sceneHandler17_showBottle()");
chainQueue(QU_SC17_SHOWBOTTLE, 0);
}

void sceneHandler17_hideSugar() {
warning("STUB: sceneHandler17_hideSugar()");
StaticANIObject *sugar = g_fp->_currentScene->getStaticANIObject1ById(ANI_INV_SUGAR, -1);

if (sugar)
sugar->hide();
}

void sceneHandler17_showSugar() {
warning("STUB: sceneHandler17_showSugar()");
chainQueue(QU_SC17_SHOWSUGAR, 0);

g_vars->scene17_var06 = 1;
}

void sceneHandler17_moonshineFill() {
Expand Down

0 comments on commit e92dc69

Please sign in to comment.