aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/room_flags.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-26 12:39:44 -0400
committerPaul Gilbert2016-07-15 19:25:09 -0400
commit6f063c4703e5705edbba7ad39ef9c0656b74bc75 (patch)
tree64cb04d4e3f3a327f6a080ffef8e7af6c0f12152 /engines/titanic/room_flags.h
parent0146a3c6b6bdb16eef6f46e116b0d9fe9883858f (diff)
downloadscummvm-rg350-6f063c4703e5705edbba7ad39ef9c0656b74bc75.tar.gz
scummvm-rg350-6f063c4703e5705edbba7ad39ef9c0656b74bc75.tar.bz2
scummvm-rg350-6f063c4703e5705edbba7ad39ef9c0656b74bc75.zip
TITANIC: Fleshing out CGameObject and CPetControl methods
Diffstat (limited to 'engines/titanic/room_flags.h')
-rw-r--r--engines/titanic/room_flags.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/titanic/room_flags.h b/engines/titanic/room_flags.h
index dfb7c89d96..f0f90f80d1 100644
--- a/engines/titanic/room_flags.h
+++ b/engines/titanic/room_flags.h
@@ -58,25 +58,25 @@ private:
*/
uint decodeFloorBits(uint bits) const;
+ static bool is2To19(uint v) { return v >= 2 && v <= 19; }
+ static bool is20To27(uint v) { return v >= 20 && v <= 27; }
+ static bool is28To38(uint v) { return v >= 28 && v <= 38; }
+public:
/**
- * Compares two room flags together
+ * Compares the current flags against the specified flags
+ * for a matching elevator, floor, and room
*/
- bool compareFlags(CRoomFlags flags1, CRoomFlags flags2) const;
+ static bool compareLocation(uint flags1, uint flags2);
/**
- * Compares the current flags against the specified flags
- * for a matching elevator, floor, and room
+ * Compares two room flags together
*/
- bool compareLocation(uint roomFlags);
+ static bool compareClassElevator(uint flags1, uint flags2);
/**
* Returns true if the current flags is for Titania's room
*/
- bool isTitania() const { return _data == 0x8A397; }
-
- static bool is2To19(uint v) { return v >= 2 && v <= 19; }
- static bool is20To27(uint v) { return v >= 20 && v <= 27; }
- static bool is28To38(uint v) { return v >= 28 && v <= 38; }
+ static bool isTitania(uint flags1, uint flags2);
public:
CRoomFlags() : _data(0) {}
CRoomFlags(uint data) : _data(data) {}