diff options
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/motion.cpp | 7 | ||||
-rw-r--r-- | engines/fullpipe/motion.h | 20 |
2 files changed, 19 insertions, 8 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 28201c535d..844813807e 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -186,13 +186,8 @@ MessageQueue *MctlCompound::doWalkTo(StaticANIObject *subj, int xpos, int ypos, } MctlLadder::MctlLadder() { - _preload.preloadId1 = 0; - _preload.keyCode = 0; - _preload.sceneId = 0; - _preload.preloadId2 = 0; - _ladder_field_18 = 0; - _ladder_field_C = 0; + _objId = 0; _ladder_field_1C = 0; _ladder_field_10 = 0; _ladder_field_14 = 0; diff --git a/engines/fullpipe/motion.h b/engines/fullpipe/motion.h index 9e1e42aaa4..6cc3862ca8 100644 --- a/engines/fullpipe/motion.h +++ b/engines/fullpipe/motion.h @@ -161,16 +161,32 @@ public: MessageQueue *genMovement(MGMInfo *mgminfo); }; +struct MctlLadderMovementVars { + int varUpGo; + int varDownGo; + int varUpStop; + int varDownStop; + int varUpStart; + int varDownStart; +}; + +struct MctlLadderMovement { + int objId; + int staticIdsSize; + MctlLadderMovementVars *movVars; + int *staticIds; +}; + class MctlLadder : public MotionController { public: - int _ladder_field_C; + int _objId; int _ladder_field_10; int _ladder_field_14; int _ladder_field_18; int _ladder_field_1C; int _ladder_field_20; int _ladder_field_24; - PreloadItem _preload; + Common::List<MctlLadderMovement *> _movements; MGM _mgm; public: |