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

Public Member Functions

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

Sets up the section

Reimplemented from Titanic::CPetSection.

◆ reset()

bool Titanic::CPetConversations::reset ( )
overridevirtual

Reset the section

Reimplemented from Titanic::CPetSection.

◆ draw()

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

Draw the section

Reimplemented from Titanic::CPetSection.

◆ getBounds()

Rect Titanic::CPetConversations::getBounds ( ) const
overridevirtual

Get the bounds for the section

Reimplemented from Titanic::CPetSection.

◆ isValid()

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

Returns true if the object is in a valid state

Reimplemented from Titanic::CPetSection.

◆ MouseButtonDownMsg()

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

◆ displayMessage()

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

Display a message

Reimplemented from Titanic::CPetSection.

◆ load()

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

Load the data for the class from file

Reimplemented from Titanic::CPetSection.

◆ postLoad()

void Titanic::CPetConversations::postLoad ( )
overridevirtual

Called after a game has been loaded

Reimplemented from Titanic::CPetSection.

◆ save()

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

Save the data for the class to file

Reimplemented from Titanic::CPetSection.

◆ enter()

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

Called when a section is switched to

Reimplemented from Titanic::CPetSection.

◆ leave()

void Titanic::CPetConversations::leave ( )
overridevirtual

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

Reimplemented from Titanic::CPetSection.

◆ timerExpired()

void Titanic::CPetConversations::timerExpired ( int  val)
overridevirtual

Called when a previously set up PET timer expires

Reimplemented from Titanic::CPetSection.

◆ displayNPCName()

void Titanic::CPetConversations::displayNPCName ( CGameObject npc)
overridevirtual

Display a title for an NPC

Reimplemented from Titanic::CPetSection.

◆ setNPC()

void Titanic::CPetConversations::setNPC ( const CString name)
overridevirtual

Sets the NPC to use

Reimplemented from Titanic::CPetSection.

◆ resetNPC()

void Titanic::CPetConversations::resetNPC ( )
overridevirtual

Resets the active NPC

Reimplemented from Titanic::CPetSection.

◆ showCursor()

void Titanic::CPetConversations::showCursor ( )
overridevirtual

Show the text cursor

Reimplemented from Titanic::CPetSection.

◆ hideCursor()

void Titanic::CPetConversations::hideCursor ( )
overridevirtual

Hide the text cursor

Reimplemented from Titanic::CPetSection.

◆ setActiveNPC()

void Titanic::CPetConversations::setActiveNPC ( const CString name)

Set the active NPC

◆ resetDials() [1/2]

void Titanic::CPetConversations::resetDials ( )

Resets the dials with the data for the currently active NPC

◆ resetDials() [2/2]

void Titanic::CPetConversations::resetDials ( const CString name)

Reset the dials with those for a given NPC

◆ resetDials0()

void Titanic::CPetConversations::resetDials0 ( )

Reset the dials to the '0' position

◆ addLine()

void Titanic::CPetConversations::addLine ( const CString line)

Adds a line to the log

◆ startNPCTimer()

void Titanic::CPetConversations::startNPCTimer ( )

Starts the NPC timer

◆ stopNPCTimer()

void Titanic::CPetConversations::stopNPCTimer ( )

Stops the NPC timer


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