ScummVM API documentation
Titanic::CPetRooms Class Reference
Inheritance diagram for Titanic::CPetRooms:
Titanic::CPetSection

Public Member Functions

bool setup (CPetControl *petControl) override
 
bool reset () override
 
void draw (CScreenManager *screenManager) override
 
bool MouseButtonDownMsg (CMouseButtonDownMsg *msg) override
 
bool MouseDragStartMsg (CMouseDragStartMsg *msg) override
 
bool MouseButtonUpMsg (CMouseButtonUpMsg *msg) override
 
bool MouseDoubleClickMsg (CMouseDoubleClickMsg *msg) override
 
bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) override
 
bool checkDragEnd (CGameObject *item) override
 
void displayMessage (const CString &msg) override
 
bool isValid (CPetControl *petControl) override
 
void load (SimpleFile *file, int param) override
 
void postLoad () override
 
void save (SimpleFile *file, int indent) override
 
void enter (PetArea oldArea) override
 
void enterRoom (CRoomItem *room) override
 
CTextControlgetText () override
 
CGameObjectgetBackground (int index) const override
 
void resetHighlight ()
 
void reassignRoom (PassengerClass passClassNum)
 
bool changeLocationClass (PassengerClass newClassNum)
 
bool isAssignedRoom (uint roomFlags) const
 
uint getAssignedRoomFlags () const
 
int getAssignedRoomNum () const
 
int getAssignedFloorNum () const
 
int getAssignedElevatorNum () const
 
uint getRoomFlags () const
 
void setFloorNum (int floorNum)
 
int getFloorNum () const
 
void setElevatorNum (int elevNum)
 
int getElevatorNum () const
 
void setRoomNum (int roomNum)
 
int getRoomNum () const
 
void setSublevel (int level)
 
int getSublevel () const
 
void setWellEntry (int val)
 
int getWellEntry () const
 
void setElevatorBroken (bool flag)
 
- Public Member Functions inherited from Titanic::CPetSection
virtual Rect getBounds () const
 
virtual void changed (int changeType)
 
virtual bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
virtual bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
virtual bool MouseWheelMsg (CMouseWheelMsg *msg)
 
virtual bool KeyCharMsg (CKeyCharMsg *msg)
 
virtual CGameObjectdragEnd (const Point &pt) const
 
virtual void leave ()
 
virtual void proc23 ()
 
virtual void timerExpired (int val)
 
virtual void removeText (int duration)
 
virtual void removeText ()
 
virtual void stopTextTimer ()
 
virtual CPetElementgetElement (uint id)
 
virtual void displayNPCName (CGameObject *npc)
 
virtual void proc33 ()
 
virtual void setNPC (const CString &name)
 
virtual void resetNPC ()
 
virtual void showCursor ()
 
virtual void hideCursor ()
 
virtual void highlight (int id)
 
CPetControlgetPetControl () const
 
uint getColor (uint index)
 
const uint * getColorTable (int tableNum=-1)
 

Additional Inherited Members

- Public Attributes inherited from Titanic::CPetSection
CPetControl_petControl
 
- Protected Member Functions inherited from Titanic::CPetSection
void areaChanged (PetArea area)
 
CString getActiveNPCName () const
 
void copyColors (uint tableNum, uint colors[5])
 

Member Function Documentation

◆ setup()

bool Titanic::CPetRooms::setup ( CPetControl petControl)
overridevirtual

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ reset()

bool Titanic::CPetRooms::reset ( )
overridevirtual

Reset the section

Reimplemented from Titanic::CPetSection.

◆ draw()

void Titanic::CPetRooms::draw ( CScreenManager screenManager)
overridevirtual

Draw the section

Reimplemented from Titanic::CPetSection.

◆ MouseButtonDownMsg()

bool Titanic::CPetRooms::MouseButtonDownMsg ( CMouseButtonDownMsg msg)
overridevirtual

Following are handlers for the various messages that the PET can pass onto the currently active section/area

Reimplemented from Titanic::CPetSection.

◆ checkDragEnd()

bool Titanic::CPetRooms::checkDragEnd ( CGameObject item)
overridevirtual

Check whether a drag drop can occur

Reimplemented from Titanic::CPetSection.

◆ displayMessage()

void Titanic::CPetRooms::displayMessage ( const CString msg)
overridevirtual

Display a message

Reimplemented from Titanic::CPetSection.

◆ isValid()

bool Titanic::CPetRooms::isValid ( CPetControl petControl)
overridevirtual

Returns true if the object is in a valid state

Reimplemented from Titanic::CPetSection.

◆ load()

void Titanic::CPetRooms::load ( SimpleFile file,
int  param 
)
overridevirtual

Load the data for the class from file

Reimplemented from Titanic::CPetSection.

◆ postLoad()

void Titanic::CPetRooms::postLoad ( )
overridevirtual

Called after a game has been loaded

Reimplemented from Titanic::CPetSection.

◆ save()

void Titanic::CPetRooms::save ( SimpleFile file,
int  indent 
)
overridevirtual

Save the data for the class to file

Reimplemented from Titanic::CPetSection.

◆ enter()

void Titanic::CPetRooms::enter ( PetArea  oldArea)
overridevirtual

Called when a section is switched to

Reimplemented from Titanic::CPetSection.

◆ enterRoom()

void Titanic::CPetRooms::enterRoom ( CRoomItem room)
overridevirtual

Called when a new room is entered

Reimplemented from Titanic::CPetSection.

◆ getText()

CTextControl* Titanic::CPetRooms::getText ( )
overridevirtual

Get a reference to the tooltip text associated with the section

Reimplemented from Titanic::CPetSection.

◆ getBackground()

CGameObject* Titanic::CPetRooms::getBackground ( int  index) const
overridevirtual

Special retrieval of glyph background image

Reimplemented from Titanic::CPetSection.

◆ resetHighlight()

void Titanic::CPetRooms::resetHighlight ( )

Reset the highlight

◆ reassignRoom()

void Titanic::CPetRooms::reassignRoom ( PassengerClass  passClassNum)

Gives the player a new assigned room in the specified passenger class

◆ changeLocationClass()

bool Titanic::CPetRooms::changeLocationClass ( PassengerClass  newClassNum)

Change the current location passenger class

◆ isAssignedRoom()

bool Titanic::CPetRooms::isAssignedRoom ( uint  roomFlags) const

Returns true if the specified location is the current or previously assigned room

◆ getAssignedRoomFlags()

uint Titanic::CPetRooms::getAssignedRoomFlags ( ) const

Returns the room flags for the player's currently assigned room

◆ getAssignedRoomNum()

int Titanic::CPetRooms::getAssignedRoomNum ( ) const

Returns the room number for the player's currently assigned room

◆ getAssignedFloorNum()

int Titanic::CPetRooms::getAssignedFloorNum ( ) const

Returns the floor number for the player's currently assigned room

◆ getAssignedElevatorNum()

int Titanic::CPetRooms::getAssignedElevatorNum ( ) const

Returns the elevator number for the player's currently assigned room

◆ getRoomFlags()

uint Titanic::CPetRooms::getRoomFlags ( ) const

Gets room flags to use for glyphs

◆ setWellEntry()

void Titanic::CPetRooms::setWellEntry ( int  val)
inline

Sets the entry number for arriving at the well

◆ getWellEntry()

int Titanic::CPetRooms::getWellEntry ( ) const
inline

Gets the entry number used when last arriving at the well

◆ setElevatorBroken()

void Titanic::CPetRooms::setElevatorBroken ( bool  flag)
inline

Sets the broken elevator flag


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