ScummVM API documentation
Grim::Costume Class Reference
Inheritance diagram for Grim::Costume:
Grim::Object Grim::EMICostume

Public Member Functions

 Costume (const Common::String &filename, Actor *owner, Costume *prevCost)
 
virtual void load (Common::SeekableReadStream *data)
 
const Common::StringgetFilename () const
 
void playChore (const char *name, uint msecs=0)
 
virtual void playChore (int num, uint msecs=0)
 
void playChoreLooping (const char *name, uint msecs=0)
 
virtual void playChoreLooping (int num, uint msecs=0)
 
void setChoreLastFrame (int num)
 
void setChoreLooping (int num, bool val)
 
void stopChore (int num, uint msecs=0)
 
void fadeChoreIn (int chore, uint msecs)
 
void fadeChoreOut (int chore, uint msecs)
 
ModelNodegetModelNodes ()
 
ModelgetModel ()
 
void setColormap (const Common::String &map)
 
void stopChores (bool ignoreLoopingChores=false, int msecs=0)
 
int isChoring (const char *name, bool excludeLooping)
 
int isChoring (int num, bool excludeLooping)
 
int isChoring (bool excludeLooping)
 
int getNumChores () const
 
ChoregetChore (const char *name)
 
ChoregetChore (int i)
 
int getChoreId (const char *name)
 
const Common::List< Chore * > & getPlayingChores () const
 
void setHead (int joint1, int joint2, int joint3, float maxRoll, float maxPitch, float maxYaw)
 
void setLookAtRate (float rate)
 
float getLookAtRate () const
 
virtual void moveHead (bool entering, const Math::Vector3d &lookAt)
 
int getHeadJoint () const
 
CMapgetCMap ()
 
virtual int update (uint frameTime)
 
void animate ()
 
virtual void draw ()
 
void getBoundingBox (int *x1, int *y1, int *x2, int *y2)
 
void setPosRotate (const Math::Vector3d &pos, const Math::Angle &pitch, const Math::Angle &yaw, const Math::Angle &roll)
 
Math::Matrix4 getMatrix () const
 
ActorgetOwner () const
 
CostumegetPreviousCostume () const
 
virtual void saveState (SaveGame *state) const
 
virtual bool restoreState (SaveGame *state)
 
ComponentgetComponent (int num)
 
- Public Member Functions inherited from Grim::Object
void reset ()
 
void reference ()
 
void dereference ()
 
int32 getId () const
 

Protected Member Functions

virtual ComponentloadComponent (tag32 tag, Component *parent, int parentID, const char *name, Component *prevComponent)
 
void load (TextSplitter &ts, Costume *prevCost)
 
ModelComponentgetMainModelComponent () const
 

Protected Attributes

Common::String _fname
 
Costume_prevCostume
 
int _numComponents
 
Component ** _components
 
BaseHead_head
 
ObjectPtr< CMap_cmap
 
int _numChores
 
Chore ** _chores
 
Common::List< Chore * > _playingChores
 
Math::Matrix4 _matrix
 
Actor_owner
 
float _lookAtRate
 

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