ScummVM API documentation
Titanic::CPetInventoryGlyph Class Reference
Inheritance diagram for Titanic::CPetInventoryGlyph:
Titanic::CPetGlyph Titanic::ListItem Titanic::CSaveableObject

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
 
CGameObjectgetObjectAt () 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)
 
CPetGlyphsgetOwner ()
 
CPetControlgetPetControl () 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 ClassDefgetType () 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 CSaveableObjectcreateInstance (const Common::String &name)
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Member Functions inherited from Titanic::CPetGlyph
CPetSectiongetPetSection () const
 

Member Function Documentation

◆ enter()

void Titanic::CPetInventoryGlyph::enter ( )
overridevirtual

Called when the PET area is entered

Reimplemented from Titanic::CPetGlyph.

◆ leave()

void Titanic::CPetInventoryGlyph::leave ( )
overridevirtual

Called when the PET area is left

Reimplemented from Titanic::CPetGlyph.

◆ drawAt()

void Titanic::CPetInventoryGlyph::drawAt ( CScreenManager screenManager,
const Point pt,
bool  isHighlighted 
)
overridevirtual

Draw the glyph at a specified position

Reimplemented from Titanic::CPetGlyph.

◆ unhighlightCurrent()

void Titanic::CPetInventoryGlyph::unhighlightCurrent ( )
overridevirtual

Unhighlight any currently highlighted element

Reimplemented from Titanic::CPetGlyph.

◆ highlightCurrent()

void Titanic::CPetInventoryGlyph::highlightCurrent ( const Point pt)
overridevirtual

Highlight any currently highlighted element

Reimplemented from Titanic::CPetGlyph.

◆ glyphFocused()

void Titanic::CPetInventoryGlyph::glyphFocused ( const Point topLeft,
bool  flag 
)
overridevirtual

Glyph has been shifted to be first visible one

Reimplemented from Titanic::CPetGlyph.

◆ dragGlyph()

bool Titanic::CPetInventoryGlyph::dragGlyph ( const Point topLeft,
CMouseDragStartMsg msg 
)
overridevirtual

Called when a glyph drag starts

Reimplemented from Titanic::CPetGlyph.

◆ getTooltip()

void Titanic::CPetInventoryGlyph::getTooltip ( CTextControl text)
overridevirtual

Returns the tooltip text for when the glyph is selected

Reimplemented from Titanic::CPetGlyph.

◆ isValid()

bool Titanic::CPetInventoryGlyph::isValid ( ) const
inlineoverridevirtual

Return whether the glyph is currently valid

Reimplemented from Titanic::CPetGlyph.

◆ getObjectAt()

CGameObject* Titanic::CPetInventoryGlyph::getObjectAt ( )
inlineoverridevirtual

Returns the object associated with the glyph

Reimplemented from Titanic::CPetGlyph.

◆ doAction()

bool Titanic::CPetInventoryGlyph::doAction ( CGlyphAction action)
overridevirtual

Does a processing action on the glyph

Reimplemented from Titanic::CPetGlyph.

◆ setItem()

void Titanic::CPetInventoryGlyph::setItem ( CGameObject item,
bool  isLoading 
)

Set the inventory item


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