Public Member Functions | |
virtual bool | setup (CPetControl *petControl, CPetGlyphs *owner) |
virtual bool | reset () |
virtual void | enter () |
virtual void | leave () |
virtual void | drawAt (CScreenManager *screenManager, const Point &pt, bool isHighlighted) |
virtual void | draw2 (CScreenManager *screenManager) |
virtual void | updateTooltip () |
virtual Rect | getBounds () const |
virtual bool | MouseButtonDownMsg (const Point &pt) |
virtual bool | MouseDragStartMsg (CMouseDragStartMsg *msg) |
virtual bool | MouseDragMoveMsg (CMouseDragMoveMsg *msg) |
virtual bool | MouseDragEndMsg (CMouseDragEndMsg *msg) |
virtual bool | MouseButtonUpMsg (const Point &pt) |
virtual bool | MouseDoubleClickMsg (const CMouseDoubleClickMsg *msg) |
virtual bool | KeyCharMsg (int key) |
virtual bool | VirtualKeyCharMsg (CVirtualKeyCharMsg *msg) |
virtual void | unhighlightCurrent () |
virtual void | highlightCurrent (const Point &pt) |
virtual void | glyphFocused (const Point &topLeft, bool flag) |
virtual void | selectGlyph (const Point &topLeft, const Point &pt) |
virtual bool | dragGlyph (const Point &topLeft, CMouseDragStartMsg *msg) |
virtual bool | contains (const Point &delta, const Point &pt) |
virtual void | getTooltip (CTextControl *text) |
virtual void | saveGlyph (SimpleFile *file, int indent) |
virtual bool | proc33 (CPetGlyph *glyph) |
virtual bool | isValid () const |
virtual bool | enterHighlighted () |
virtual void | leaveHighlighted () |
virtual CGameObject * | getObjectAt () |
virtual bool | doAction (CGlyphAction *action) |
void | translate (const Point &pt) |
void | translateBack (const Point &pt) |
CPetGlyphs * | getOwner () |
CPetControl * | getPetControl () const |
void | setName (const CString &name, CPetControl *petControl) |
bool | isHighlighted () const |
Public Member Functions inherited from Titanic::ListItem | |
void | save (SimpleFile *file, int indent) override |
void | load (SimpleFile *file) override |
Public Member Functions inherited from Titanic::CSaveableObject | |
virtual ClassDef * | getType () const |
bool | isInstanceOf (const ClassDef *classDef) const |
virtual void | saveHeader (SimpleFile *file, int indent) |
virtual void | saveFooter (SimpleFile *file, int indent) |
Public Attributes | |
CPetGfxElement | _element |
CPetGlyphs * | _owner |
Public Attributes inherited from Titanic::ListItem | |
CLASSDEF | |
Protected Member Functions | |
CPetSection * | getPetSection () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Titanic::CSaveableObject | |
static void | initClassList () |
static void | freeClassList () |
static CSaveableObject * | createInstance (const Common::String &name) |
Static Public Attributes inherited from Titanic::CSaveableObject | |
static ClassDef * | _type |
|
protected |
Get the overall pet section owner
|
virtual |
Setup the glyph
Reimplemented in Titanic::CSkipNavigationGlyph, Titanic::CNavigationControllerGlyph, Titanic::CSuccubusDeliveryGlyph, Titanic::CDeployMajorStorageGlyph, Titanic::CDeploySinkGlyph, Titanic::CDeployMinorRelaxationGlyph, Titanic::CDeployWorkSurfaceGlyph, Titanic::CDeployMaintenanceGlyph, Titanic::CInflateRelaxationGlyph, Titanic::CDeployMajorRelaxationGlyph, Titanic::CDeployMinorStorageGlyph, Titanic::CDeployComfortGlyph, Titanic::CDeployFullyRelaxationGlyph, Titanic::CDeployFloralGlyph, Titanic::COperateLightsGlyph, Titanic::CEntertainmentDeviceGlyph, Titanic::CTelevisionControlGlyph, Titanic::CRemoteGotoGlyph, Titanic::CToggleRemoteGlyph, Titanic::CBasicRemoteGlyph, Titanic::CPetLoadSave, Titanic::CPetRoomsGlyph, Titanic::CPetSound, and Titanic::CPetQuit.
|
inlinevirtual |
Reset the glyph
Reimplemented in Titanic::CPetLoadSave, Titanic::CPetSound, Titanic::CPetQuit, Titanic::CPetLoad, and Titanic::CPetSave.
|
inlinevirtual |
Called when the PET area is entered
Reimplemented in Titanic::CPetInventoryGlyph.
|
inlinevirtual |
Called when the PET area is left
Reimplemented in Titanic::CPetInventoryGlyph.
|
virtual |
Draw the glyph at a specified position
Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetRoomsGlyph.
|
inlinevirtual |
Handles any secondary drawing of the glyph
Reimplemented in Titanic::CSkipNavigationGlyph, Titanic::CNavigationControllerGlyph, Titanic::CSuccubusDeliveryGlyph, Titanic::COperateLightsGlyph, Titanic::CEntertainmentDeviceGlyph, Titanic::CTelevisionControlGlyph, Titanic::CRemoteGotoGlyph, Titanic::CToggleRemoteGlyph, Titanic::CBasicRemoteGlyph, Titanic::CPetLoadSave, Titanic::CPetRoomsGlyph, Titanic::CPetSound, and Titanic::CPetQuit.
|
virtual |
Updates the tooltip being shown for the glyph
|
inlinevirtual |
Get the bounds for the glyph
|
inlinevirtual |
Called for mouse button down messages
Reimplemented in Titanic::CSkipNavigationGlyph, Titanic::CNavigationControllerGlyph, Titanic::CSuccubusDeliveryGlyph, Titanic::CDeployMajorStorageGlyph, Titanic::CDeploySinkGlyph, Titanic::CDeployMinorRelaxationGlyph, Titanic::CDeployWorkSurfaceGlyph, Titanic::CDeployMaintenanceGlyph, Titanic::CInflateRelaxationGlyph, Titanic::CDeployMajorRelaxationGlyph, Titanic::CDeployMinorStorageGlyph, Titanic::CDeployComfortGlyph, Titanic::CDeployFullyRelaxationGlyph, Titanic::CDeployFloralGlyph, Titanic::COperateLightsGlyph, Titanic::CEntertainmentDeviceGlyph, Titanic::CTelevisionControlGlyph, Titanic::CRemoteGotoGlyph, Titanic::CBasicRemoteGlyph, Titanic::CPetLoadSave, Titanic::CPetSound, and Titanic::CPetQuit.
|
inlinevirtual |
Called when mouse drag starts
Reimplemented in Titanic::CPetSound.
|
inlinevirtual |
Called during mouse drags
Reimplemented in Titanic::CPetSound.
|
inlinevirtual |
Called when mouse drag ends
Reimplemented in Titanic::CPetSound.
|
inlinevirtual |
Handles mouse button up messages
Reimplemented in Titanic::CSkipNavigationGlyph, Titanic::CNavigationControllerGlyph, Titanic::CSuccubusDeliveryGlyph, Titanic::CDeployMajorStorageGlyph, Titanic::CDeploySinkGlyph, Titanic::CDeployMinorRelaxationGlyph, Titanic::CDeployWorkSurfaceGlyph, Titanic::CDeployMaintenanceGlyph, Titanic::CInflateRelaxationGlyph, Titanic::CDeployMajorRelaxationGlyph, Titanic::CDeployMinorStorageGlyph, Titanic::CDeployComfortGlyph, Titanic::CDeployFullyRelaxationGlyph, Titanic::CDeployFloralGlyph, Titanic::COperateLightsGlyph, Titanic::CEntertainmentDeviceGlyph, Titanic::CTelevisionControlGlyph, Titanic::CRemoteGotoGlyph, Titanic::CBasicRemoteGlyph, Titanic::CPetSound, Titanic::CPetQuit, Titanic::CPetLoad, and Titanic::CPetSave.
|
inlinevirtual |
Handles mouse double-click messages
|
inlinevirtual |
Handles keypresses
Reimplemented in Titanic::CPetLoadSave, and Titanic::CPetSave.
|
inlinevirtual |
Handles keypresses
|
inlinevirtual |
Unhighlight any currently highlighted element
Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetSave.
|
inlinevirtual |
Highlight any currently highlighted element
Reimplemented in Titanic::CPetSound, Titanic::CPetInventoryGlyph, Titanic::CPetSave, and Titanic::CPetLoad.
|
inlinevirtual |
Glyph has been shifted to be first visible one
Reimplemented in Titanic::CPetInventoryGlyph.
|
inlinevirtual |
Selects a glyph
Reimplemented in Titanic::CPetRoomsGlyph.
|
inlinevirtual |
Called when a glyph drag starts
Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetRoomsGlyph.
Returns true if the glyph's bounds, shifted to a given position, will contain the specified point
|
inlinevirtual |
Returns the tooltip text for when the glyph is selected
Reimplemented in Titanic::CSkipNavigationGlyph, Titanic::CNavigationControllerGlyph, Titanic::CSuccubusDeliveryGlyph, Titanic::CDeployMajorStorageGlyph, Titanic::CDeploySinkGlyph, Titanic::CDeployMinorRelaxationGlyph, Titanic::CDeployWorkSurfaceGlyph, Titanic::CDeployMaintenanceGlyph, Titanic::CInflateRelaxationGlyph, Titanic::CDeployMajorRelaxationGlyph, Titanic::CDeployMinorStorageGlyph, Titanic::CDeployComfortGlyph, Titanic::CDeployFullyRelaxationGlyph, Titanic::CDeployFloralGlyph, Titanic::COperateLightsGlyph, Titanic::CEntertainmentDeviceGlyph, Titanic::CTelevisionControlGlyph, Titanic::CRemoteGotoGlyph, Titanic::CBasicRemoteGlyph, Titanic::CPetInventoryGlyph, Titanic::CPetSound, Titanic::CPetRoomsGlyph, Titanic::CPetQuit, Titanic::CPetSave, and Titanic::CPetLoad.
|
inlinevirtual |
Saves the data for the glyph
Reimplemented in Titanic::CPetRoomsGlyph.
|
inlinevirtual |
Return whether the glyph is currently valid
Reimplemented in Titanic::CPetInventoryGlyph.
|
inlinevirtual |
Called on a highlighted item when PET area is entered
Reimplemented in Titanic::CPetSave.
|
inlinevirtual |
Called on a highlighted item when PET area is left
Reimplemented in Titanic::CPetSave.
|
inlinevirtual |
Returns the object associated with the glyph
Reimplemented in Titanic::CPetInventoryGlyph.
|
inlinevirtual |
Does a processing action on the glyph
Reimplemented in Titanic::CPetInventoryGlyph.
|
inline |
Translate the glyph's position
|
inline |
Translate the glyph's position back
|
inline |
Get the parent RealLife area
CPetControl* Titanic::CPetGlyph::getPetControl | ( | ) | const |
Get the PET control
void Titanic::CPetGlyph::setName | ( | const CString & | name, |
CPetControl * | petControl | ||
) |
Sets new name and default bounds for glyph
bool Titanic::CPetGlyph::isHighlighted | ( | ) | const |
Returns true if the specified glyph is the currently highlighted one