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

Public Member Functions

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 void setup (PetElementMode mode, const CString &name, CPetControl *petControl)
 
virtual void reset (const CString &name, CPetControl *petControl, PetElementMode mode)
 
virtual void draw (CScreenManager *screenManager)
 
virtual void draw (CScreenManager *screenManager, const Point &destPos)
 
virtual Rect getBounds () const
 
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 CGameObjectgetObject () 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)
 

Protected Attributes

int _field4
 
int _field8
 
int _fieldC
 
int _field10
 
int _field14
 
Rect _bounds
 
PetElementMode _mode
 

Member Function Documentation

◆ setup()

virtual void Titanic::CPetElement::setup ( PetElementMode  mode,
const CString name,
CPetControl petControl 
)
inlinevirtual

Sets up the element

Reimplemented in Titanic::CPetGfxElement.

◆ reset()

virtual void Titanic::CPetElement::reset ( const CString name,
CPetControl petControl,
PetElementMode  mode 
)
inlinevirtual

Reset the element

Reimplemented in Titanic::CPetGfxElement.

◆ draw() [1/2]

virtual void Titanic::CPetElement::draw ( CScreenManager screenManager)
inlinevirtual

Draw the item

Reimplemented in Titanic::CPetGfxElement.

◆ draw() [2/2]

virtual void Titanic::CPetElement::draw ( CScreenManager screenManager,
const Point destPos 
)
inlinevirtual

Draw the item

Reimplemented in Titanic::CPetGfxElement.

◆ getBounds()

virtual Rect Titanic::CPetElement::getBounds ( ) const
virtual

Get the bounds for the element

Reimplemented in Titanic::CPetGfxElement.

◆ MouseButtonDownMsg()

virtual bool Titanic::CPetElement::MouseButtonDownMsg ( const Point pt)
virtual

Handles processing mouse button down messages

◆ MouseButtonUpMsg()

virtual bool Titanic::CPetElement::MouseButtonUpMsg ( const Point pt)
virtual

Handles processing mouse button up messages

◆ MouseDoubleClickMsg()

virtual bool Titanic::CPetElement::MouseDoubleClickMsg ( const Point pt) const
virtual

Handles processing mouse button double click messages

◆ MouseMoveMsg()

virtual bool Titanic::CPetElement::MouseMoveMsg ( const Point pt)
virtual

Handles processing mouse move messages

◆ contains2()

virtual bool Titanic::CPetElement::contains2 ( const Point pt) const
virtual

Returns whether the passed point falls inside the item

◆ playMovie()

virtual void Titanic::CPetElement::playMovie ( uint  startFrame,
uint  endFrame 
) const
virtual

Plays back a range of frames in the loaded video file for the element

◆ changeStatus()

virtual void Titanic::CPetElement::changeStatus ( int  newStatus) const
virtual

Change the status of the associated object

◆ hasActiveMovie()

virtual bool Titanic::CPetElement::hasActiveMovie ( ) const
virtual

Returns true if the object associated with the item has an active movie

◆ loadFrame()

virtual void Titanic::CPetElement::loadFrame ( int  frameNumber)
virtual

Loads a frame

◆ getMovieFrame()

virtual int Titanic::CPetElement::getMovieFrame ( ) const
virtual

Get the current frame

◆ getObject()

virtual CGameObject* Titanic::CPetElement::getObject ( ) const
inlinevirtual

Get the game object associated with this item

Reimplemented in Titanic::CPetGfxElement.

◆ setSelected()

void Titanic::CPetElement::setSelected ( bool  flag)

Set whether the element is selected

◆ setBounds()

void Titanic::CPetElement::setBounds ( const Rect r)
inline

Set the bounds for the element

◆ translate() [1/2]

void Titanic::CPetElement::translate ( int  deltaX,
int  deltaY 
)
inline

Translate the position of the element

◆ translate() [2/2]

void Titanic::CPetElement::translate ( const Point delta)
inline

Translate the position of the element


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