diff options
author | David Fioramonti | 2018-04-25 16:03:21 -0700 |
---|---|---|
committer | Bastien Bouclet | 2018-04-26 22:09:46 +0200 |
commit | ab7cdc5907910e2c72bad80fb6ef6161ab7a0990 (patch) | |
tree | be9341b8fdf5ba94ec3129cbd8ad48feedb2e388 /engines/mohawk/myst_state.h | |
parent | d53051760da47fa02477e58184d54b87567d9d34 (diff) | |
download | scummvm-rg350-ab7cdc5907910e2c72bad80fb6ef6161ab7a0990.tar.gz scummvm-rg350-ab7cdc5907910e2c72bad80fb6ef6161ab7a0990.tar.bz2 scummvm-rg350-ab7cdc5907910e2c72bad80fb6ef6161ab7a0990.zip |
MOHAWK: MYST: Make global currentAge an enum
This global basically tracks what age/book/stack
the player is in.
It is also used to change stacks via
MohawkEngine_Myst::changeToStack() by
being an index for MystScriptParser::_stackMap
and MystScriptParser::_startCard.
E.x., instead of _global.currentAge = 2
now _global.currentAge = kMystLibrary.
Also two of the endings are considered Ages
instead of being apart of _global.ending.
Diffstat (limited to 'engines/mohawk/myst_state.h')
-rw-r--r-- | engines/mohawk/myst_state.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/mohawk/myst_state.h b/engines/mohawk/myst_state.h index fa01d03396..737db306ab 100644 --- a/engines/mohawk/myst_state.h +++ b/engines/mohawk/myst_state.h @@ -71,6 +71,21 @@ enum HeldPage { kWhitePage = 13 }; +// Age the player is in +enum ActiveAge { + kSelenitic = 0, + kStoneship = 1, + kMystLibrary = 2, + kMechanical = 3, + kChannelwood = 4, + kIntro = 5, + kDini = 6, + kMystStart = 7, + kCredits = 8, + kSirrusEnding = 9, + kAchenarEnding = 10 +}; + class MystGameState { public: MystGameState(MohawkEngine_Myst*, Common::SaveFileManager*); @@ -98,7 +113,7 @@ public: */ struct Globals { uint16 u0; - uint16 currentAge; + ActiveAge currentAge; HeldPage heldPage; uint16 u1; uint16 transitions; |