aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/myst.h
diff options
context:
space:
mode:
authorBastien Bouclet2012-12-07 08:13:34 +0100
committerBastien Bouclet2012-12-16 06:51:00 +0100
commit8050bca8d32d42bc3572d2158b6fdc4e7b9c3861 (patch)
tree7bb19cec70df7365a246ee7d03f613a6d2bfed5a /engines/mohawk/myst_stacks/myst.h
parentfdad5ec7b408fd9e45d69de2a2a9ca9e1796d1a5 (diff)
downloadscummvm-rg350-8050bca8d32d42bc3572d2158b6fdc4e7b9c3861.tar.gz
scummvm-rg350-8050bca8d32d42bc3572d2158b6fdc4e7b9c3861.tar.bz2
scummvm-rg350-8050bca8d32d42bc3572d2158b6fdc4e7b9c3861.zip
MOHAWK: Implement the Myst boiler movies
Diffstat (limited to 'engines/mohawk/myst_stacks/myst.h')
-rw-r--r--engines/mohawk/myst_stacks/myst.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/mohawk/myst_stacks/myst.h b/engines/mohawk/myst_stacks/myst.h
index e9bff08cb4..8ecb3e4755 100644
--- a/engines/mohawk/myst_stacks/myst.h
+++ b/engines/mohawk/myst_stacks/myst.h
@@ -174,7 +174,7 @@ private:
DECLARE_OPCODE(o_gulls2_init);
DECLARE_OPCODE(o_treeCard_init);
DECLARE_OPCODE(o_treeEntry_init);
- DECLARE_OPCODE(opcode_218);
+ DECLARE_OPCODE(o_boilerMovies_init);
DECLARE_OPCODE(o_rocketSliders_init);
DECLARE_OPCODE(o_rocketLinkVideo_init);
DECLARE_OPCODE(o_greenBook_init);
@@ -183,6 +183,7 @@ private:
DECLARE_OPCODE(o_bookAddSpecialPage_exit);
DECLARE_OPCODE(o_treeCard_exit);
DECLARE_OPCODE(o_treeEntry_exit);
+ DECLARE_OPCODE(o_boiler_exit);
DECLARE_OPCODE(o_generatorControlRoom_exit);
@@ -259,6 +260,9 @@ private:
uint16 _cabinMatchState; // 60
uint32 _matchGoOutTime; // 144
+ VideoHandle _cabinFireMovie; // 240
+ VideoHandle _cabinGaugeMovie; // 244
+
bool _boilerPressureIncreasing;
bool _boilerPressureDecreasing;
bool _basementPressureIncreasing;
@@ -317,6 +321,12 @@ private:
Common::Point towerRotationMapComputeCoords(const Common::Point &center, uint16 angle);
void towerRotationMapDrawLine(const Common::Point &center, const Common::Point &end);
+ void boilerFireInit();
+ void boilerFireUpdate(bool init);
+ void boilerGaugeInit();
+ Common::Rational boilerComputeGaugeRate(uint16 pressure, uint32 delay);
+ void boilerResetGauge(const Common::Rational &rate);
+
void treeSetAlcoveAccessible();
uint32 treeNextMoveDelay(uint16 pressure);