diff options
author | Paul Gilbert | 2016-06-22 13:48:33 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:24:01 -0400 |
commit | 5aff1d01b4088979e207c434476fa7ca3f6a644f (patch) | |
tree | 4e12d11c23742da06e38241d94e081109b20f6d9 /engines/titanic/pet_control/pet_rooms_glyphs.h | |
parent | 23da68350dee0b211cdcf29734146ac71583044b (diff) | |
download | scummvm-rg350-5aff1d01b4088979e207c434476fa7ca3f6a644f.tar.gz scummvm-rg350-5aff1d01b4088979e207c434476fa7ca3f6a644f.tar.bz2 scummvm-rg350-5aff1d01b4088979e207c434476fa7ca3f6a644f.zip |
TITANIC: Cleaning up mode and room flags fields on PET room glyphs
Diffstat (limited to 'engines/titanic/pet_control/pet_rooms_glyphs.h')
-rw-r--r-- | engines/titanic/pet_control/pet_rooms_glyphs.h | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_rooms_glyphs.h b/engines/titanic/pet_control/pet_rooms_glyphs.h index 3f37bdb55d..c48011f347 100644 --- a/engines/titanic/pet_control/pet_rooms_glyphs.h +++ b/engines/titanic/pet_control/pet_rooms_glyphs.h @@ -27,11 +27,13 @@ namespace Titanic { +enum RoomGlyphMode { RGM_0 = 0, RGM_1 = 1, RGM_2 = 2 }; + class CPetRoomsGlyph : public CPetGlyph { protected: - int _field34; + uint _roomFlags; int _field38; - int _field3C; + RoomGlyphMode _mode; CGameObject *_field40; CGameObject *_field44; CGameObject *_field48; @@ -42,13 +44,28 @@ protected: CGameObject *_field5C; public: CPetRoomsGlyph(); - CPetRoomsGlyph(int val); + CPetRoomsGlyph(uint flags); - void set34(int val) { _field34 = val; } + /** + * Set the room flags for the glyph + */ + void setFoomFlags(uint flags) { _roomFlags = flags; } + + /** + * Get the room flags for the glyph + */ + uint getRoomFlags() const { return _roomFlags; } void set38(int val) { _field38 = val; } - void set3C(int val) { _field3C = val; } + /** + * Sets the mode of the glyph + */ + void setMode(RoomGlyphMode mode) { _mode = mode; } + + bool isModeValid() const { return _mode != RGM_0; } + bool isMode1() const { return _mode == RGM_1; } + bool isMode2() const { return _mode == RGM_2; } /** * Setup the glyph @@ -86,6 +103,8 @@ public: * Save the list */ void save2(SimpleFile *file, int indent) const; + + CPetRoomsGlyph *findMode1() const; }; } // End of namespace Titanic |