diff options
author | Johannes Schickel | 2006-09-17 20:21:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-09-17 20:21:40 +0000 |
commit | b6a8e38726b55dec5a959ec914c6f9e6fda358d8 (patch) | |
tree | 72c3c981e7171789a71aa752485cd45149263e3d /engines/kyra/kyra.h | |
parent | 3e8380f2c6889c85e0e962631eaf9814c2f84963 (diff) | |
download | scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.tar.gz scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.tar.bz2 scummvm-rg350-b6a8e38726b55dec5a959ec914c6f9e6fda358d8.zip |
- removes the kyra specific language flag system, and uses the language enum defined in Common for that now
- also reworks the game flag system in general
svn-id: r23920
Diffstat (limited to 'engines/kyra/kyra.h')
-rw-r--r-- | engines/kyra/kyra.h | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/engines/kyra/kyra.h b/engines/kyra/kyra.h index e7e78ac272..8bab62eab0 100644 --- a/engines/kyra/kyra.h +++ b/engines/kyra/kyra.h @@ -46,19 +46,14 @@ class StaticResource; struct ScriptState; struct ScriptData; -enum { - GF_FLOPPY = 1 << 0, - GF_TALKIE = 1 << 1, - GF_AUDIOCD = 1 << 2, // FM-Towns versions seems to use audio CD - GF_DEMO = 1 << 3, - GF_ENGLISH = 1 << 4, - GF_FRENCH = 1 << 5, - GF_GERMAN = 1 << 6, - GF_SPANISH = 1 << 7, - GF_ITALIAN = 1 << 8, - // other languages here - GF_LNGUNK = 1 << 16, // also used for multi language in kyra3 - GF_AMIGA = 1 << 17 // this is no special version flag yet! +struct GameFlags { + Common::Language lang; + Common::Platform platform; + bool isDemo; + bool useAltShapeHeader; // alternative shape header (uses 2 bytes more, those are unused though) + bool hasAudioCD; + bool isTalkie; + byte gameID; }; enum { @@ -261,8 +256,8 @@ public: uint32 tickLength() const { return _tickLength; } virtual Movie *createWSAMovie(); - uint8 game() const { return _game; } - uint32 features() const { return _features; } + uint8 game() const { return _flags.gameID; } + const GameFlags &gameFlags() const { return _flags; } uint8 **shapes() { return _shapes; } Character *currentCharacter() { return _currentCharacter; } @@ -707,7 +702,7 @@ protected: void gui_printString(const char *string, int x, int y, int col1, int col2, int flags, ...); - uint8 _game; + GameFlags _flags; bool _quitFlag; bool _skipFlag; bool _skipIntroFlag; @@ -721,7 +716,6 @@ protected: uint8 *_shapes[377]; uint16 _gameSpeed; uint16 _tickLength; - uint32 _features; int _lang; int _mouseX, _mouseY; int8 _itemInHand; |