ScummVM API documentation
Titanic::CRoomFlags Class Reference

Public Member Functions

 CRoomFlags (uint data)
 
 operator uint ()
 
void set (uint data)
 
uint get () const
 
bool isSuccUBusRoomFlags () const
 
CString getRoomDesc () const
 
uint getElevatorBits () const
 
void setElevatorNum (uint val)
 
uint getElevatorNum () const
 
uint getPassengerClassBits () const
 
void setPassengerClassBits (uint val)
 
PassengerClass getPassengerClassNum () const
 
CString getPassengerClassDesc () const
 
uint getFloorBits () const
 
void setFloorNum (uint floorNum)
 
uint getFloorNum () const
 
void setRoomBits (uint roomBits)
 
uint getRoomBits () const
 
uint getRoomNum () const
 
CString getElevatorDesc () const
 
CString getFloorDesc () const
 
CString getRoomNumDesc () const
 
bool getBit0 () const
 
void changeClass (PassengerClass newClassNum)
 
void setRandomLocation (PassengerClass classNum, bool flag)
 
PassengerClass getSuccUBusClass (const CString &roomName) const
 
CString getSuccUBusRoomName () const
 
bool isSuccUBusDest () const
 
bool isFirstClassSuite () const
 

Static Public Member Functions

static bool compareLocation (uint flags1, uint flags2)
 
static bool compareClassElevator (uint flags1, uint flags2)
 
static bool isTitania (uint flags1, uint flags2)
 
static uint getSpecialRoomFlags (const CString &roomName)
 
static PassengerClass whatPassengerClass (int floorNum)
 

Member Function Documentation

◆ compareLocation()

static bool Titanic::CRoomFlags::compareLocation ( uint  flags1,
uint  flags2 
)
static

Compares the current flags against the specified flags for a matching elevator, floor, and room

◆ compareClassElevator()

static bool Titanic::CRoomFlags::compareClassElevator ( uint  flags1,
uint  flags2 
)
static

Compares two room flags together

◆ isTitania()

static bool Titanic::CRoomFlags::isTitania ( uint  flags1,
uint  flags2 
)
static

Returns true if the current flags is for Titania's room

◆ set()

void Titanic::CRoomFlags::set ( uint  data)
inline

Set the flags value

◆ get()

uint Titanic::CRoomFlags::get ( ) const
inline

Get the flags value

◆ getSpecialRoomFlags()

static uint Titanic::CRoomFlags::getSpecialRoomFlags ( const CString roomName)
static

Gets the special flags for a transport or succubus room

◆ isSuccUBusRoomFlags()

bool Titanic::CRoomFlags::isSuccUBusRoomFlags ( ) const

Returns true if the current flags are in the succubus list

◆ getRoomDesc()

CString Titanic::CRoomFlags::getRoomDesc ( ) const

Get a description for the room

◆ getElevatorBits()

uint Titanic::CRoomFlags::getElevatorBits ( ) const

Get the bits for the elevator number

◆ setElevatorNum()

void Titanic::CRoomFlags::setElevatorNum ( uint  val)
inline

Set the elevator number

◆ getElevatorNum()

uint Titanic::CRoomFlags::getElevatorNum ( ) const
inline

Get the elevator number

◆ getPassengerClassBits()

uint Titanic::CRoomFlags::getPassengerClassBits ( ) const

Gets the bits for the passenger class

◆ setPassengerClassBits()

void Titanic::CRoomFlags::setPassengerClassBits ( uint  val)

Set the bits for the passenger class

◆ getPassengerClassNum()

PassengerClass Titanic::CRoomFlags::getPassengerClassNum ( ) const
inline

Gets the passenger class number

◆ getPassengerClassDesc()

CString Titanic::CRoomFlags::getPassengerClassDesc ( ) const

Get a description for the passenger class

◆ getFloorBits()

uint Titanic::CRoomFlags::getFloorBits ( ) const

Gets the bits for the floor number

◆ setFloorNum()

void Titanic::CRoomFlags::setFloorNum ( uint  floorNum)

Sets the floor number

◆ getFloorNum()

uint Titanic::CRoomFlags::getFloorNum ( ) const

Gets the floor number

◆ setRoomBits()

void Titanic::CRoomFlags::setRoomBits ( uint  roomBits)

Sets the bits for the room number

◆ getRoomBits()

uint Titanic::CRoomFlags::getRoomBits ( ) const

Gets the bits for the room number

◆ getRoomNum()

uint Titanic::CRoomFlags::getRoomNum ( ) const
inline

Gets the room number

◆ getElevatorDesc()

CString Titanic::CRoomFlags::getElevatorDesc ( ) const

Get a description for the elevator number

◆ getFloorDesc()

CString Titanic::CRoomFlags::getFloorDesc ( ) const

Get a description for the floor number

◆ getRoomNumDesc()

CString Titanic::CRoomFlags::getRoomNumDesc ( ) const

Gets a string for the room number

◆ changeClass()

void Titanic::CRoomFlags::changeClass ( PassengerClass  newClassNum)

Change the passenger class

◆ setRandomLocation()

void Titanic::CRoomFlags::setRandomLocation ( PassengerClass  classNum,
bool  flag 
)

Sets a random destination in the flags

◆ getSuccUBusClass()

PassengerClass Titanic::CRoomFlags::getSuccUBusClass ( const CString roomName) const

Gets the passenger class for a succubus associated with a given room

◆ getSuccUBusRoomName()

CString Titanic::CRoomFlags::getSuccUBusRoomName ( ) const

Gets the succubus room name associated with the current room flags

◆ whatPassengerClass()

static PassengerClass Titanic::CRoomFlags::whatPassengerClass ( int  floorNum)
static

Returns what passenger class a particular floor number belongs to

◆ isSuccUBusDest()

bool Titanic::CRoomFlags::isSuccUBusDest ( ) const
inline

Returns true if it's a location with a SuccUBus terminal

◆ isFirstClassSuite()

bool Titanic::CRoomFlags::isFirstClassSuite ( ) const
inline

Returns true if the player is in their 1st class stateroom


The documentation for this class was generated from the following file: