Public Member Functions | |
CPetInventoryGlyph (CCarry *item, bool active) | |
void | enter () override |
void | leave () override |
void | drawAt (CScreenManager *screenManager, const Point &pt, bool isHighlighted) override |
void | unhighlightCurrent () override |
void | highlightCurrent (const Point &pt) override |
void | glyphFocused (const Point &topLeft, bool flag) override |
bool | dragGlyph (const Point &topLeft, CMouseDragStartMsg *msg) override |
void | getTooltip (CTextControl *text) override |
bool | isValid () const override |
CGameObject * | getObjectAt () override |
bool | doAction (CGlyphAction *action) override |
void | setItem (CGameObject *item, bool isLoading) |
Public Member Functions inherited from Titanic::CPetGlyph | |
virtual bool | setup (CPetControl *petControl, CPetGlyphs *owner) |
virtual bool | reset () |
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 | selectGlyph (const Point &topLeft, const Point &pt) |
virtual bool | contains (const Point &delta, const Point &pt) |
virtual void | saveGlyph (SimpleFile *file, int indent) |
virtual bool | proc33 (CPetGlyph *glyph) |
virtual bool | enterHighlighted () |
virtual void | leaveHighlighted () |
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 | |
CGameObject * | _item |
bool | _active |
CGameObject * | _repeated |
CGameObject * | _singular |
Public Attributes inherited from Titanic::CPetGlyph | |
CPetGfxElement | _element |
CPetGlyphs * | _owner |
Public Attributes inherited from Titanic::ListItem | |
CLASSDEF | |
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 Member Functions inherited from Titanic::CPetGlyph | |
CPetSection * | getPetSection () const |
|
overridevirtual |
Called when the PET area is entered
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Called when the PET area is left
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Draw the glyph at a specified position
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Unhighlight any currently highlighted element
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Highlight any currently highlighted element
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Glyph has been shifted to be first visible one
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Called when a glyph drag starts
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Returns the tooltip text for when the glyph is selected
Reimplemented from Titanic::CPetGlyph.
|
inlineoverridevirtual |
Return whether the glyph is currently valid
Reimplemented from Titanic::CPetGlyph.
|
inlineoverridevirtual |
Returns the object associated with the glyph
Reimplemented from Titanic::CPetGlyph.
|
overridevirtual |
Does a processing action on the glyph
Reimplemented from Titanic::CPetGlyph.
void Titanic::CPetInventoryGlyph::setItem | ( | CGameObject * | item, |
bool | isLoading | ||
) |
Set the inventory item