ScummVM API documentation
Titanic::CPetGlyph Class Reference
Inheritance diagram for Titanic::CPetGlyph:
Titanic::ListItem Titanic::CSaveableObject Titanic::CPetInventoryGlyph Titanic::CPetLoadSave Titanic::CPetQuit Titanic::CPetRemoteGlyph Titanic::CPetRoomsGlyph Titanic::CPetSound Titanic::CPetLoad Titanic::CPetSave Titanic::CBasicRemoteGlyph Titanic::CNavigationControllerGlyph Titanic::COperateLightsGlyph Titanic::CRemoteGotoGlyph Titanic::CSkipNavigationGlyph Titanic::CSuccubusDeliveryGlyph Titanic::CTelevisionControlGlyph Titanic::CToggleRemoteGlyph

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 CGameObjectgetObjectAt ()
 
virtual bool doAction (CGlyphAction *action)
 
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

CPetGfxElement _element
 
CPetGlyphs_owner
 
- Public Attributes inherited from Titanic::ListItem
 CLASSDEF
 

Protected Member Functions

CPetSectiongetPetSection () const
 

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
 

Member Function Documentation

◆ getPetSection()

CPetSection* Titanic::CPetGlyph::getPetSection ( ) const
protected

Get the overall pet section owner

◆ setup()

◆ reset()

virtual bool Titanic::CPetGlyph::reset ( void  )
inlinevirtual

◆ enter()

virtual void Titanic::CPetGlyph::enter ( )
inlinevirtual

Called when the PET area is entered

Reimplemented in Titanic::CPetInventoryGlyph.

◆ leave()

virtual void Titanic::CPetGlyph::leave ( )
inlinevirtual

Called when the PET area is left

Reimplemented in Titanic::CPetInventoryGlyph.

◆ drawAt()

virtual void Titanic::CPetGlyph::drawAt ( CScreenManager screenManager,
const Point pt,
bool  isHighlighted 
)
virtual

Draw the glyph at a specified position

Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetRoomsGlyph.

◆ draw2()

◆ updateTooltip()

virtual void Titanic::CPetGlyph::updateTooltip ( )
virtual

Updates the tooltip being shown for the glyph

◆ getBounds()

virtual Rect Titanic::CPetGlyph::getBounds ( ) const
inlinevirtual

Get the bounds for the glyph

◆ MouseButtonDownMsg()

◆ MouseDragStartMsg()

virtual bool Titanic::CPetGlyph::MouseDragStartMsg ( CMouseDragStartMsg msg)
inlinevirtual

Called when mouse drag starts

Reimplemented in Titanic::CPetSound.

◆ MouseDragMoveMsg()

virtual bool Titanic::CPetGlyph::MouseDragMoveMsg ( CMouseDragMoveMsg msg)
inlinevirtual

Called during mouse drags

Reimplemented in Titanic::CPetSound.

◆ MouseDragEndMsg()

virtual bool Titanic::CPetGlyph::MouseDragEndMsg ( CMouseDragEndMsg msg)
inlinevirtual

Called when mouse drag ends

Reimplemented in Titanic::CPetSound.

◆ MouseButtonUpMsg()

◆ MouseDoubleClickMsg()

virtual bool Titanic::CPetGlyph::MouseDoubleClickMsg ( const CMouseDoubleClickMsg msg)
inlinevirtual

Handles mouse double-click messages

◆ KeyCharMsg()

virtual bool Titanic::CPetGlyph::KeyCharMsg ( int  key)
inlinevirtual

Handles keypresses

Reimplemented in Titanic::CPetLoadSave, and Titanic::CPetSave.

◆ VirtualKeyCharMsg()

virtual bool Titanic::CPetGlyph::VirtualKeyCharMsg ( CVirtualKeyCharMsg msg)
inlinevirtual

Handles keypresses

◆ unhighlightCurrent()

virtual void Titanic::CPetGlyph::unhighlightCurrent ( )
inlinevirtual

Unhighlight any currently highlighted element

Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetSave.

◆ highlightCurrent()

virtual void Titanic::CPetGlyph::highlightCurrent ( const Point pt)
inlinevirtual

Highlight any currently highlighted element

Reimplemented in Titanic::CPetSound, Titanic::CPetInventoryGlyph, Titanic::CPetSave, and Titanic::CPetLoad.

◆ glyphFocused()

virtual void Titanic::CPetGlyph::glyphFocused ( const Point topLeft,
bool  flag 
)
inlinevirtual

Glyph has been shifted to be first visible one

Reimplemented in Titanic::CPetInventoryGlyph.

◆ selectGlyph()

virtual void Titanic::CPetGlyph::selectGlyph ( const Point topLeft,
const Point pt 
)
inlinevirtual

Selects a glyph

Reimplemented in Titanic::CPetRoomsGlyph.

◆ dragGlyph()

virtual bool Titanic::CPetGlyph::dragGlyph ( const Point topLeft,
CMouseDragStartMsg msg 
)
inlinevirtual

Called when a glyph drag starts

Reimplemented in Titanic::CPetInventoryGlyph, and Titanic::CPetRoomsGlyph.

◆ contains()

virtual bool Titanic::CPetGlyph::contains ( const Point delta,
const Point pt 
)
virtual

Returns true if the glyph's bounds, shifted to a given position, will contain the specified point

◆ getTooltip()

◆ saveGlyph()

virtual void Titanic::CPetGlyph::saveGlyph ( SimpleFile file,
int  indent 
)
inlinevirtual

Saves the data for the glyph

Reimplemented in Titanic::CPetRoomsGlyph.

◆ isValid()

virtual bool Titanic::CPetGlyph::isValid ( ) const
inlinevirtual

Return whether the glyph is currently valid

Reimplemented in Titanic::CPetInventoryGlyph.

◆ enterHighlighted()

virtual bool Titanic::CPetGlyph::enterHighlighted ( )
inlinevirtual

Called on a highlighted item when PET area is entered

Reimplemented in Titanic::CPetSave.

◆ leaveHighlighted()

virtual void Titanic::CPetGlyph::leaveHighlighted ( )
inlinevirtual

Called on a highlighted item when PET area is left

Reimplemented in Titanic::CPetSave.

◆ getObjectAt()

virtual CGameObject* Titanic::CPetGlyph::getObjectAt ( )
inlinevirtual

Returns the object associated with the glyph

Reimplemented in Titanic::CPetInventoryGlyph.

◆ doAction()

virtual bool Titanic::CPetGlyph::doAction ( CGlyphAction action)
inlinevirtual

Does a processing action on the glyph

Reimplemented in Titanic::CPetInventoryGlyph.

◆ translate()

void Titanic::CPetGlyph::translate ( const Point pt)
inline

Translate the glyph's position

◆ translateBack()

void Titanic::CPetGlyph::translateBack ( const Point pt)
inline

Translate the glyph's position back

◆ getOwner()

CPetGlyphs* Titanic::CPetGlyph::getOwner ( )
inline

Get the parent RealLife area

◆ getPetControl()

CPetControl* Titanic::CPetGlyph::getPetControl ( ) const

Get the PET control

◆ setName()

void Titanic::CPetGlyph::setName ( const CString name,
CPetControl petControl 
)

Sets new name and default bounds for glyph

◆ isHighlighted()

bool Titanic::CPetGlyph::isHighlighted ( ) const

Returns true if the specified glyph is the currently highlighted one


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