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

Public Member Functions

bool setup (CPetControl *petControl) override
 
bool reset () override
 
void draw (CScreenManager *screenManager) override
 
Rect getBounds () const override
 
bool MouseButtonDownMsg (CMouseButtonDownMsg *msg) override
 
bool MouseDragStartMsg (CMouseDragStartMsg *msg) override
 
bool MouseDragMoveMsg (CMouseDragMoveMsg *msg) override
 
bool MouseDragEndMsg (CMouseDragEndMsg *msg) override
 
bool MouseButtonUpMsg (CMouseButtonUpMsg *msg) override
 
bool KeyCharMsg (CKeyCharMsg *msg) override
 
bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) override
 
CGameObjectdragEnd (const Point &pt) const 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 leave () override
 
void enterRoom (CRoomItem *room) override
 
CTextControlgetText () override
 
void syncSoundSettings ()
 
- Public Member Functions inherited from Titanic::CPetSection
virtual void changed (int changeType)
 
virtual bool MouseDoubleClickMsg (CMouseDoubleClickMsg *msg)
 
virtual bool MouseWheelMsg (CMouseWheelMsg *msg)
 
virtual bool checkDragEnd (CGameObject *item)
 
virtual void displayMessage (const CString &msg)
 
virtual void proc23 ()
 
virtual void timerExpired (int val)
 
virtual void removeText (int duration)
 
virtual void removeText ()
 
virtual void stopTextTimer ()
 
virtual CPetElementgetElement (uint id)
 
virtual CGameObjectgetBackground (int index) const
 
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::CPetRealLife::setup ( CPetControl petControl)
overridevirtual

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ reset()

bool Titanic::CPetRealLife::reset ( )
overridevirtual

Reset the section

Reimplemented from Titanic::CPetSection.

◆ draw()

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

Draw the section

Reimplemented from Titanic::CPetSection.

◆ getBounds()

Rect Titanic::CPetRealLife::getBounds ( ) const
inlineoverridevirtual

Get the bounds for the section

Reimplemented from Titanic::CPetSection.

◆ MouseButtonDownMsg()

bool Titanic::CPetRealLife::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.

◆ dragEnd()

CGameObject* Titanic::CPetRealLife::dragEnd ( const Point pt) const
inlineoverridevirtual

Returns item a drag-drop operation has dropped on, if any

Reimplemented from Titanic::CPetSection.

◆ isValid()

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

Returns true if the object is in a valid state

Reimplemented from Titanic::CPetSection.

◆ load()

void Titanic::CPetRealLife::load ( SimpleFile file,
int  param 
)
inlineoverridevirtual

Load the data for the class from file

Reimplemented from Titanic::CPetSection.

◆ postLoad()

void Titanic::CPetRealLife::postLoad ( )
overridevirtual

Called after a game has been loaded

Reimplemented from Titanic::CPetSection.

◆ save()

void Titanic::CPetRealLife::save ( SimpleFile file,
int  indent 
)
inlineoverridevirtual

Save the data for the class to file

Reimplemented from Titanic::CPetSection.

◆ enter()

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

Called when a section is switched to

Reimplemented from Titanic::CPetSection.

◆ leave()

void Titanic::CPetRealLife::leave ( )
overridevirtual

Called when a section is being left, to switch to another area

Reimplemented from Titanic::CPetSection.

◆ enterRoom()

void Titanic::CPetRealLife::enterRoom ( CRoomItem room)
inlineoverridevirtual

Called when a new room is entered

Reimplemented from Titanic::CPetSection.

◆ getText()

CTextControl* Titanic::CPetRealLife::getText ( )
inlineoverridevirtual

Get a reference to the tooltip text associated with the section

Reimplemented from Titanic::CPetSection.

◆ syncSoundSettings()

void Titanic::CPetRealLife::syncSoundSettings ( )

Handles updates to the sound levels


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