22 #ifndef TITANIC_ROOM_FLAGS_H 23 #define TITANIC_ROOM_FLAGS_H 25 #include "titanic/support/string.h" 26 #include "titanic/game_location.h" 34 int getConditionally()
const;
40 bool isTransportRoom()
const;
42 int getRoomCategory()
const;
44 int getRoomArea()
const;
49 void setElevatorBits(uint val);
54 void setFloorBits(uint val);
59 uint decodeFloorBits(uint bits)
const;
61 static bool is2To19(uint v) {
return v >= 2 && v <= 19; }
62 static bool is20To27(uint v) {
return v >= 20 && v <= 27; }
63 static bool is28To38(uint v) {
return v >= 28 && v <= 38; }
79 static bool isTitania(uint flags1, uint flags2);
83 operator uint() {
return _data; }
88 void set(uint data) { _data = data; }
93 uint
get()
const {
return _data; }
192 bool getBit0()
const;
228 return _data == 0x59706;
CString getSuccUBusRoomName() const
static bool compareClassElevator(uint flags1, uint flags2)
uint getPassengerClassBits() const
bool isFirstClassSuite() const
Definition: room_flags.h:227
CString getPassengerClassDesc() const
uint getFloorBits() const
Definition: room_flags.h:30
uint getRoomNum() const
Definition: room_flags.h:175
static PassengerClass whatPassengerClass(int floorNum)
PassengerClass getPassengerClassNum() const
Definition: room_flags.h:138
void setRandomLocation(PassengerClass classNum, bool flag)
CString getFloorDesc() const
void setRoomBits(uint roomBits)
CString getRoomNumDesc() const
bool isSuccUBusRoomFlags() const
CString getElevatorDesc() const
CString getRoomDesc() const
void setElevatorNum(uint val)
Definition: room_flags.h:118
static uint getSpecialRoomFlags(const CString &roomName)
void changeClass(PassengerClass newClassNum)
void setFloorNum(uint floorNum)
bool isSuccUBusDest() const
Definition: room_flags.h:222
void setPassengerClassBits(uint val)
PassengerClass getSuccUBusClass(const CString &roomName) const
uint getElevatorNum() const
Definition: room_flags.h:123
static bool compareLocation(uint flags1, uint flags2)
uint getElevatorBits() const
static bool isTitania(uint flags1, uint flags2)