#include <pet_frame.h>
Public Member Functions | |
bool | setup (CPetControl *petControl) override |
bool | reset () override |
bool | MouseButtonDownMsg (CMouseButtonDownMsg *msg) override |
bool | MouseButtonUpMsg (CMouseButtonUpMsg *msg) override |
bool | isValid (CPetControl *petControl) override |
void | postLoad () override |
void | setArea (PetArea newArea) |
void | resetArea () |
void | drawFrame (CScreenManager *screenManager) |
void | drawSquares (CScreenManager *screenManager, int count) |
Public Member Functions inherited from Titanic::CPetSection | |
virtual void | draw (CScreenManager *screenManager) |
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 | 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 void | load (SimpleFile *file, int param) |
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) |
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]) |
This implements the frame and background for the PET display. This includes the area buttons and title
|
overridevirtual |
Sets up the section
Reimplemented from Titanic::CPetSection.
|
overridevirtual |
Sets up the section
Reimplemented from Titanic::CPetSection.
|
overridevirtual |
Handles mouse down messages
Reimplemented from Titanic::CPetSection.
|
overridevirtual |
Returns true if the object is in a valid state
Reimplemented from Titanic::CPetSection.
|
overridevirtual |
Called after a game has been loaded
Reimplemented from Titanic::CPetSection.
void Titanic::CPetFrame::setArea | ( | PetArea | newArea | ) |
Called when the current PET area changes
void Titanic::CPetFrame::resetArea | ( | ) |
Reset the currently selected area
void Titanic::CPetFrame::drawFrame | ( | CScreenManager * | screenManager | ) |
Draws the PET frame
void Titanic::CPetFrame::drawSquares | ( | CScreenManager * | screenManager, |
int | count | ||
) |
Draws the indent