From 52217fa434ba50751a139b97f634d255a50c6e97 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 4 Dec 2010 11:54:08 +0000 Subject: MOHAWK: Implement Myst opcodes 120 and 210, rocket power generator svn-id: r54759 --- engines/mohawk/myst_stacks/myst.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'engines/mohawk/myst_stacks/myst.h') diff --git a/engines/mohawk/myst_stacks/myst.h b/engines/mohawk/myst_stacks/myst.h index a64c7176dd..8f0827277a 100644 --- a/engines/mohawk/myst_stacks/myst.h +++ b/engines/mohawk/myst_stacks/myst.h @@ -47,6 +47,7 @@ public: private: void setupOpcodes(); + uint16 getVar(uint16 var); void opcode_200_run(); void opcode_200_disable(); @@ -60,8 +61,7 @@ private: void opcode_205_disable(); void opcode_209_run(); void opcode_209_disable(); - void opcode_210_run(); - void opcode_210_disable(); + void o_generatorControlRoom_run(); void opcode_211_run(); void opcode_211_disable(); void opcode_212_run(); @@ -80,7 +80,7 @@ private: DECLARE_OPCODE(opcode_117); DECLARE_OPCODE(opcode_118); DECLARE_OPCODE(opcode_119); - DECLARE_OPCODE(opcode_120); + DECLARE_OPCODE(o_generatorButtonPressed); DECLARE_OPCODE(opcode_121); DECLARE_OPCODE(opcode_122); DECLARE_OPCODE(opcode_123); @@ -139,7 +139,7 @@ private: DECLARE_OPCODE(opcode_206); DECLARE_OPCODE(opcode_208); DECLARE_OPCODE(opcode_209); - DECLARE_OPCODE(opcode_210); + DECLARE_OPCODE(o_generatorControlRoom_init); DECLARE_OPCODE(opcode_211); DECLARE_OPCODE(opcode_212); DECLARE_OPCODE(opcode_213); @@ -164,6 +164,12 @@ private: DECLARE_OPCODE(opcode_308); DECLARE_OPCODE(opcode_309); DECLARE_OPCODE(opcode_312); + + bool _generatorControlRoomRunning; + uint16 _generatorVoltage; // 58 + + void generatorRedrawRocket(); + void generatorButtonValue(MystResource *button, uint16 &offset, uint16 &value); }; } // End of namespace Mohawk -- cgit v1.2.3