From 0b187a7937d612bfc764e95689c28299c7f1d138 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 18 Dec 2013 23:23:32 +0200 Subject: FULLPIPE: Implement sceneHandler06_setExits() --- engines/fullpipe/motion.cpp | 4 ++++ engines/fullpipe/motion.h | 2 ++ engines/fullpipe/scenes/scene06.cpp | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 2dd025855d..116d58aafe 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -42,6 +42,10 @@ bool MotionController::load(MfcArchive &file) { return true; } +void MotionController::enableLinks(const char *linkName, bool enable) { + warning("STUB: MotionController::enableLinks()"); +} + bool MctlCompound::load(MfcArchive &file) { debug(5, "MctlCompound::load()"); diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index e5b592876e..96c0a4fada 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -59,6 +59,8 @@ public: virtual int method44() { return 0; } virtual int method48() { return -1; } virtual MessageQueue *doWalkTo(StaticANIObject *subj, int xpos, int ypos, int fuzzyMatch, int staticsId) { return 0; } + + void enableLinks(const char *linkName, bool enable); }; class MovGraphReact : public CObject { diff --git a/engines/fullpipe/scenes/scene06.cpp b/engines/fullpipe/scenes/scene06.cpp index 7f49df385e..e23b34d81e 100644 --- a/engines/fullpipe/scenes/scene06.cpp +++ b/engines/fullpipe/scenes/scene06.cpp @@ -69,7 +69,10 @@ int scene06_updateCursor() { } void sceneHandler06_setExits(Scene *sc) { - warning("STUB: sceneHandler06_setExits()"); + MotionController *mc = getSc2MctlCompoundBySceneId(sc->_sceneId); + + mc->enableLinks(sO_CloseThing, (g_fullpipe->getObjectState(sO_BigMumsy) != g_fullpipe->getObjectEnumState(sO_BigMumsy, sO_IsGone))); + mc->enableLinks(sO_CloseThing2, (g_vars->scene06_var07 != 0)); } void sceneHandler06_winArcade() { -- cgit v1.2.3