aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/mechanical.h
diff options
context:
space:
mode:
authorBastien Bouclet2011-03-05 18:27:34 +0100
committerBastien Bouclet2011-03-05 18:33:22 +0100
commit7d506ef853a66cc35816926fe739785c2fd1f2d1 (patch)
tree5705e65e58a26dcfa776a3a05987e7251c4c4faa /engines/mohawk/myst_stacks/mechanical.h
parentb16967fecea8d7df19cdfa05f511e98c2b53f1d1 (diff)
downloadscummvm-rg350-7d506ef853a66cc35816926fe739785c2fd1f2d1.tar.gz
scummvm-rg350-7d506ef853a66cc35816926fe739785c2fd1f2d1.tar.bz2
scummvm-rg350-7d506ef853a66cc35816926fe739785c2fd1f2d1.zip
MOHAWK: Implement Mechanical opcode 122, elevator go down timer
Diffstat (limited to 'engines/mohawk/myst_stacks/mechanical.h')
-rw-r--r--engines/mohawk/myst_stacks/mechanical.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/mohawk/myst_stacks/mechanical.h b/engines/mohawk/myst_stacks/mechanical.h
index 24c6c73471..6a0aa30f5c 100644
--- a/engines/mohawk/myst_stacks/mechanical.h
+++ b/engines/mohawk/myst_stacks/mechanical.h
@@ -55,6 +55,7 @@ private:
void opcode_202_run();
void opcode_202_disable();
void elevatorRotation_run();
+ void elevatorGoMiddle_run();
void opcode_205_run();
void opcode_205_disable();
void opcode_206_run();
@@ -69,7 +70,7 @@ private:
DECLARE_OPCODE(o_elevatorRotationMove);
DECLARE_OPCODE(o_elevatorRotationStop);
DECLARE_OPCODE(o_elevatorWindowMovie);
- DECLARE_OPCODE(opcode_122);
+ DECLARE_OPCODE(o_elevatorGoMiddle);
DECLARE_OPCODE(o_elevatorTopMovie);
DECLARE_OPCODE(opcode_124);
DECLARE_OPCODE(o_mystStaircaseMovie);
@@ -90,8 +91,6 @@ private:
DECLARE_OPCODE(opcode_206);
DECLARE_OPCODE(opcode_209);
- DECLARE_OPCODE(opcode_300);
-
MystGameState::Mechanical &_state;
bool _mystStaircaseState; // 76
@@ -105,6 +104,13 @@ private:
uint16 _elevatorRotationSoundId; // 128
bool _elevatorRotationLeverMoving; // 184
+ bool _elevatorGoingMiddle; // 148
+ bool _elevatorTooLate;
+ uint16 _elevatorPosition; // 104
+ bool _elevatorInCabin; // 108
+ uint16 _elevatorTopCounter;
+ uint32 _elevatorNextTime;
+
uint16 _crystalLit; // 130
MystResourceType6 *_snakeBox; // 156