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

Public Member Functions

bool setup (CPetControl *petControl) override
 
bool reset () override
 
void draw (CScreenManager *screenManager) override
 
bool MouseButtonDownMsg (CMouseButtonDownMsg *msg) override
 
bool MouseButtonUpMsg (CMouseButtonUpMsg *msg) override
 
bool MouseDoubleClickMsg (CMouseDoubleClickMsg *msg) override
 
bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) override
 
bool MouseWheelMsg (CMouseWheelMsg *msg) override
 
bool isValid (CPetControl *petControl) override
 
void postLoad () override
 
void enter (PetArea oldArea) override
 
void enterRoom (CRoomItem *room) override
 
CTextControlgetText () override
 
CPetGfxElementgetElement (uint id) override
 
void highlight (int id) override
 
void generateMessage (RemoteMessage msgNum, const CString &name, int num)
 
- Public Member Functions inherited from Titanic::CPetSection
virtual Rect getBounds () const
 
virtual void changed (int changeType)
 
virtual bool MouseDragStartMsg (CMouseDragStartMsg *msg)
 
virtual bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
virtual bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
virtual bool KeyCharMsg (CKeyCharMsg *msg)
 
virtual bool checkDragEnd (CGameObject *item)
 
virtual CGameObjectdragEnd (const Point &pt) const
 
virtual void displayMessage (const CString &msg)
 
virtual void load (SimpleFile *file, int param)
 
virtual void save (SimpleFile *file, int indent)
 
virtual void leave ()
 
virtual void proc23 ()
 
virtual void timerExpired (int val)
 
virtual void removeText (int duration)
 
virtual void removeText ()
 
virtual void stopTextTimer ()
 
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 ()
 
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::CPetRemote::setup ( CPetControl petControl)
overridevirtual

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ reset()

bool Titanic::CPetRemote::reset ( )
overridevirtual

Reset the section

Reimplemented from Titanic::CPetSection.

◆ draw()

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

Draw the section

Reimplemented from Titanic::CPetSection.

◆ MouseButtonDownMsg()

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

◆ isValid()

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

Returns true if the object is in a valid state

Reimplemented from Titanic::CPetSection.

◆ postLoad()

void Titanic::CPetRemote::postLoad ( )
overridevirtual

Called after a game has been loaded

Reimplemented from Titanic::CPetSection.

◆ enter()

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

Called when a section is switched to

Reimplemented from Titanic::CPetSection.

◆ enterRoom()

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

Called when a new room is entered

Reimplemented from Titanic::CPetSection.

◆ getText()

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

Get a reference to the tooltip text associated with the section

Reimplemented from Titanic::CPetSection.

◆ getElement()

CPetGfxElement* Titanic::CPetRemote::getElement ( uint  id)
overridevirtual

Get an element from the section by a designated Id

Reimplemented from Titanic::CPetSection.

◆ highlight()

void Titanic::CPetRemote::highlight ( int  id)
overridevirtual

Highlights a glyph item in the section

Reimplemented from Titanic::CPetSection.

◆ generateMessage()

void Titanic::CPetRemote::generateMessage ( RemoteMessage  msgNum,
const CString name,
int  num 
)

Generates a PET message


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