FULLPIPE: Implement sceneHandler06_setExits()

This commit is contained in:
Eugene Sandulenko 2013-12-18 23:23:32 +02:00
parent 6055acb63b
commit 0b187a7937
3 changed files with 10 additions and 1 deletions

View File

@ -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()");

View File

@ -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 {

View File

@ -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() {