diff options
author | Eugene Sandulenko | 2013-12-18 23:23:32 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-19 00:43:37 +0200 |
commit | 0b187a7937d612bfc764e95689c28299c7f1d138 (patch) | |
tree | bd22b7221ed0b70aecf089980ee4b687eccca65a /engines | |
parent | 6055acb63bfa1d1c6310ff14e4143a0d934546f7 (diff) | |
download | scummvm-rg350-0b187a7937d612bfc764e95689c28299c7f1d138.tar.gz scummvm-rg350-0b187a7937d612bfc764e95689c28299c7f1d138.tar.bz2 scummvm-rg350-0b187a7937d612bfc764e95689c28299c7f1d138.zip |
FULLPIPE: Implement sceneHandler06_setExits()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/fullpipe/motion.cpp | 4 | ||||
-rw-r--r-- | engines/fullpipe/motion.h | 2 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene06.cpp | 5 |
3 files changed, 10 insertions, 1 deletions
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() { |