Public Member Functions | |
virtual bool | setup (CPetControl *petControl) |
virtual bool | reset () |
virtual void | draw (CScreenManager *screenManager) |
virtual Rect | getBounds () const |
virtual void | changed (int changeType) |
virtual bool | MouseButtonDownMsg (CMouseButtonDownMsg *msg) |
virtual bool | MouseDragStartMsg (CMouseDragStartMsg *msg) |
virtual bool | MouseDragMoveMsg (CMouseDragMoveMsg *msg) |
virtual bool | MouseDragEndMsg (CMouseDragEndMsg *msg) |
virtual bool | MouseButtonUpMsg (CMouseButtonUpMsg *msg) |
virtual bool | MouseDoubleClickMsg (CMouseDoubleClickMsg *msg) |
virtual bool | MouseWheelMsg (CMouseWheelMsg *msg) |
virtual bool | KeyCharMsg (CKeyCharMsg *msg) |
virtual bool | VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) |
virtual bool | checkDragEnd (CGameObject *item) |
virtual CGameObject * | dragEnd (const Point &pt) const |
virtual void | displayMessage (const CString &msg) |
virtual bool | isValid (CPetControl *petControl) |
virtual void | load (SimpleFile *file, int param) |
virtual void | postLoad () |
virtual void | save (SimpleFile *file, int indent) |
virtual void | enter (PetArea oldArea) |
virtual void | leave () |
virtual void | proc23 () |
virtual void | enterRoom (CRoomItem *room) |
virtual void | timerExpired (int val) |
virtual CTextControl * | getText () |
virtual void | removeText (int duration) |
virtual void | removeText () |
virtual void | stopTextTimer () |
virtual CPetElement * | getElement (uint id) |
virtual CGameObject * | getBackground (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) |
CPetControl * | getPetControl () const |
uint | getColor (uint index) |
const uint * | getColorTable (int tableNum=-1) |
Public Attributes | |
CPetControl * | _petControl |
Protected Member Functions | |
void | areaChanged (PetArea area) |
CString | getActiveNPCName () const |
void | copyColors (uint tableNum, uint colors[5]) |
|
protected |
Called when the current area is changed
|
protected |
Returns the name of the currently active NPC, if any
|
protected |
Create a color table
|
inlinevirtual |
Sets up the section
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetRooms, Titanic::CPetStarfield, Titanic::CPetInventory, Titanic::CPetFrame, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
inlinevirtual |
Reset the section
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetRooms, Titanic::CPetStarfield, Titanic::CPetInventory, Titanic::CPetFrame, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
inlinevirtual |
Draw the section
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetRooms, Titanic::CPetStarfield, Titanic::CPetInventory, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
inlinevirtual |
Get the bounds for the section
Reimplemented in Titanic::CPetConversations, Titanic::CPetInventory, and Titanic::CPetRealLife.
|
inlinevirtual |
Called when a general change occurs
Reimplemented in Titanic::CPetInventory.
|
inlinevirtual |
Following are handlers for the various messages that the PET can pass onto the currently active section/area
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetInventory, Titanic::CPetRooms, Titanic::CPetStarfield, Titanic::CPetRealLife, Titanic::CPetFrame, and Titanic::CPetTranslation.
|
inlinevirtual |
Check whether a drag drop can occur
Reimplemented in Titanic::CPetRooms.
|
inlinevirtual |
Returns item a drag-drop operation has dropped on, if any
Reimplemented in Titanic::CPetInventory, and Titanic::CPetRealLife.
|
virtual |
Display a message
Reimplemented in Titanic::CPetConversations, and Titanic::CPetRooms.
|
inlinevirtual |
Returns true if the object is in a valid state
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetStarfield, Titanic::CPetRealLife, Titanic::CPetFrame, and Titanic::CPetTranslation.
|
inlinevirtual |
Load the data for the class from file
Reimplemented in Titanic::CPetConversations, Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetStarfield, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
inlinevirtual |
Called after a game has been loaded
Reimplemented in Titanic::CPetConversations, Titanic::CPetRemote, Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetStarfield, Titanic::CPetRealLife, Titanic::CPetTranslation, and Titanic::CPetFrame.
|
inlinevirtual |
Save the data for the class to file
Reimplemented in Titanic::CPetConversations, Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetStarfield, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
inlinevirtual |
Called when a section is switched to
Reimplemented in Titanic::CPetConversations, Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetRemote, and Titanic::CPetRealLife.
|
inlinevirtual |
Called when a section is being left, to switch to another area
Reimplemented in Titanic::CPetConversations, Titanic::CPetInventory, and Titanic::CPetRealLife.
|
inlinevirtual |
Called when a new room is entered
Reimplemented in Titanic::CPetRooms, Titanic::CPetRemote, Titanic::CPetRealLife, and Titanic::CPetInventory.
|
virtual |
Called when a previously set up PET timer expires
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Get a reference to the tooltip text associated with the section
Reimplemented in Titanic::CPetRooms, Titanic::CPetInventory, Titanic::CPetRemote, Titanic::CPetRealLife, and Titanic::CPetTranslation.
|
virtual |
Removes text after a given duration
|
virtual |
Removes text after a given duration
|
virtual |
Stops the text removal timer
|
inlinevirtual |
Get an element from the section by a designated Id
Reimplemented in Titanic::CPetRemote.
|
inlinevirtual |
Special retrieval of glyph background image
Reimplemented in Titanic::CPetRooms, and Titanic::CPetInventory.
|
inlinevirtual |
Display a title for an NPC
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Sets the NPC to use
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Resets the active NPC
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Show the text cursor
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Hide the text cursor
Reimplemented in Titanic::CPetConversations.
|
inlinevirtual |
Highlights a glyph item in the section, if applicable
Reimplemented in Titanic::CPetRemote.
|
inline |
Get the PET control
uint Titanic::CPetSection::getColor | ( | uint | index | ) |
Get a specified color in the currently active UI color table
const uint* Titanic::CPetSection::getColorTable | ( | int | tableNum = -1 | ) |
Get one of the game's three UI color tables. If the default tableNum of -1 is used, the table is taken from the game state