ScummVM API documentation
Titanic::CPetGfxElement Class Reference
Inheritance diagram for Titanic::CPetGfxElement:
Titanic::CPetElement

Public Member Functions

void setup (PetElementMode mode, const CString &name, CPetControl *petControl) override
 
void reset (const CString &name, CPetControl *petControl, PetElementMode mode=MODE_UNSELECTED) override
 
void draw (CScreenManager *screenManager) override
 
void draw (CScreenManager *screenManager, const Common::Point &destPos) override
 
Rect getBounds () const override
 
CGameObjectgetObject () const override
 
const RectgetRawBounds () const
 
- Public Member Functions inherited from Titanic::CPetElement
virtual void proc1 ()
 
virtual void proc2 ()
 
virtual void proc3 ()
 
virtual void proc4 ()
 
virtual void proc5 ()
 
virtual void proc6 ()
 
virtual void proc7 ()
 
virtual void proc8 ()
 
virtual void proc9 ()
 
virtual void proc10 ()
 
virtual void proc11 ()
 
virtual void proc12 ()
 
virtual void proc13 ()
 
virtual void proc14 ()
 
virtual void proc15 ()
 
virtual void proc16 ()
 
virtual void proc17 ()
 
virtual bool MouseButtonDownMsg (const Point &pt)
 
virtual bool MouseButtonUpMsg (const Point &pt)
 
virtual bool MouseDoubleClickMsg (const Point &pt) const
 
virtual bool MouseMoveMsg (const Point &pt)
 
virtual bool contains2 (const Point &pt) const
 
virtual void playMovie (uint startFrame, uint endFrame) const
 
virtual void changeStatus (int newStatus) const
 
virtual bool hasActiveMovie () const
 
virtual void loadFrame (int frameNumber)
 
virtual int getMovieFrame () const
 
virtual void changeMode (PetElementMode newMode)
 
void setMode (PetElementMode mode)
 
void setSelected (bool flag)
 
void setBounds (const Rect &r)
 
void translate (int deltaX, int deltaY)
 
void translate (const Point &delta)
 

Public Attributes

CGameObject_object0
 
CGameObject_object1
 
CGameObject_object2
 

Additional Inherited Members

- Protected Attributes inherited from Titanic::CPetElement
int _field4
 
int _field8
 
int _fieldC
 
int _field10
 
int _field14
 
Rect _bounds
 
PetElementMode _mode
 

Member Function Documentation

◆ setup()

void Titanic::CPetGfxElement::setup ( PetElementMode  mode,
const CString name,
CPetControl petControl 
)
overridevirtual

Setup the element

Reimplemented from Titanic::CPetElement.

◆ reset()

void Titanic::CPetGfxElement::reset ( const CString name,
CPetControl petControl,
PetElementMode  mode = MODE_UNSELECTED 
)
overridevirtual

Reset the element

Reimplemented from Titanic::CPetElement.

◆ draw() [1/2]

void Titanic::CPetGfxElement::draw ( CScreenManager screenManager)
overridevirtual

Draw the item

Reimplemented from Titanic::CPetElement.

◆ draw() [2/2]

void Titanic::CPetGfxElement::draw ( CScreenManager screenManager,
const Common::Point destPos 
)
overridevirtual

Draw the item

Reimplemented from Titanic::CPetElement.

◆ getBounds()

Rect Titanic::CPetGfxElement::getBounds ( ) const
overridevirtual

Get the bounds for the element

Reimplemented from Titanic::CPetElement.

◆ getObject()

CGameObject* Titanic::CPetGfxElement::getObject ( ) const
overridevirtual

Get the game object associated with this item

Reimplemented from Titanic::CPetElement.

◆ getRawBounds()

const Rect& Titanic::CPetGfxElement::getRawBounds ( ) const
inline

Gets the explicit bounds set for the graphic element, ignoring any associated sub-object bounds


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