ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <costume.h>

Inheritance diagram for Grim::Costume:
Collaboration diagram for Grim::Costume:

List of all members.

Public Member Functions

 Costume (const Common::String &filename, Actor *owner, Costume *prevCost)
virtual ~Costume ()
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)

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

Friends

class Chore

Detailed Description

Definition at line 46 of file costume.h.


Constructor & Destructor Documentation

Grim::Costume::Costume ( const Common::String filename,
Actor owner,
Costume prevCost 
)

Definition at line 105 of file costume.cpp.

Grim::Costume::~Costume (  )  [virtual]

Definition at line 196 of file costume.cpp.


Member Function Documentation

void Grim::Costume::animate (  ) 

Definition at line 463 of file costume.cpp.

void Grim::Costume::draw (  )  [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 419 of file costume.cpp.

void Grim::Costume::fadeChoreIn ( int  chore,
uint  msecs 
)

Definition at line 374 of file costume.cpp.

void Grim::Costume::fadeChoreOut ( int  chore,
uint  msecs 
)

Definition at line 384 of file costume.cpp.

void Grim::Costume::getBoundingBox ( int *  x1,
int *  y1,
int *  x2,
int *  y2 
)

Definition at line 425 of file costume.cpp.

Chore * Grim::Costume::getChore ( const char *  name  ) 

Definition at line 304 of file costume.cpp.

Chore* Grim::Costume::getChore ( int  i  )  [inline]

Definition at line 72 of file costume.h.

int Grim::Costume::getChoreId ( const char *  name  ) 

Definition at line 313 of file costume.cpp.

CMap* Grim::Costume::getCMap (  )  [inline]

Definition at line 82 of file costume.h.

Component* Grim::Costume::getComponent ( int  num  )  [inline]

Definition at line 98 of file costume.h.

const Common::String& Grim::Costume::getFilename (  )  const [inline]

Definition at line 53 of file costume.h.

int Grim::Costume::getHeadJoint (  )  const

Definition at line 475 of file costume.cpp.

float Grim::Costume::getLookAtRate (  )  const

Definition at line 490 of file costume.cpp.

ModelComponent * Grim::Costume::getMainModelComponent (  )  const [protected]

Definition at line 240 of file costume.cpp.

Math::Matrix4 Grim::Costume::getMatrix (  )  const

Definition at line 500 of file costume.cpp.

Model * Grim::Costume::getModel (  ) 

Definition at line 258 of file costume.cpp.

ModelNode * Grim::Costume::getModelNodes (  ) 

Definition at line 250 of file costume.cpp.

int Grim::Costume::getNumChores (  )  const [inline]

Definition at line 70 of file costume.h.

Actor* Grim::Costume::getOwner (  )  const [inline]

Definition at line 91 of file costume.h.

const Common::List<Chore *>& Grim::Costume::getPlayingChores (  )  const [inline]

Definition at line 74 of file costume.h.

Costume * Grim::Costume::getPreviousCostume (  )  const

Definition at line 504 of file costume.cpp.

int Grim::Costume::isChoring ( int  num,
bool  excludeLooping 
)

Definition at line 400 of file costume.cpp.

int Grim::Costume::isChoring ( bool  excludeLooping  ) 

Definition at line 411 of file costume.cpp.

int Grim::Costume::isChoring ( const char *  name,
bool  excludeLooping 
)

Definition at line 392 of file costume.cpp.

void Grim::Costume::load ( Common::SeekableReadStream data  )  [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 112 of file costume.cpp.

void Grim::Costume::load ( TextSplitter ts,
Costume prevCost 
) [protected]
Component * Grim::Costume::loadComponent ( tag32  tag,
Component parent,
int  parentID,
const char *  name,
Component prevComponent 
) [protected, virtual]

Definition at line 210 of file costume.cpp.

void Grim::Costume::moveHead ( bool  entering,
const Math::Vector3d lookAt 
) [virtual]

Definition at line 471 of file costume.cpp.

void Grim::Costume::playChore ( int  num,
uint  msecs = 0 
) [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 336 of file costume.cpp.

void Grim::Costume::playChore ( const char *  name,
uint  msecs = 0 
)

Definition at line 325 of file costume.cpp.

void Grim::Costume::playChoreLooping ( const char *  name,
uint  msecs = 0 
)

Definition at line 282 of file costume.cpp.

void Grim::Costume::playChoreLooping ( int  num,
uint  msecs = 0 
) [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 293 of file costume.cpp.

bool Grim::Costume::restoreState ( SaveGame state  )  [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 538 of file costume.cpp.

void Grim::Costume::saveState ( SaveGame state  )  const [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 508 of file costume.cpp.

void Grim::Costume::setChoreLastFrame ( int  num  ) 

Definition at line 266 of file costume.cpp.

void Grim::Costume::setChoreLooping ( int  num,
bool  val 
)

Definition at line 274 of file costume.cpp.

void Grim::Costume::setColormap ( const Common::String map  ) 

Definition at line 354 of file costume.cpp.

void Grim::Costume::setHead ( int  joint1,
int  joint2,
int  joint3,
float  maxRoll,
float  maxPitch,
float  maxYaw 
)

Definition at line 479 of file costume.cpp.

void Grim::Costume::setLookAtRate ( float  rate  ) 

Definition at line 486 of file costume.cpp.

void Grim::Costume::setPosRotate ( const Math::Vector3d pos,
const Math::Angle pitch,
const Math::Angle yaw,
const Math::Angle roll 
)

Definition at line 494 of file costume.cpp.

void Grim::Costume::stopChore ( int  num,
uint  msecs = 0 
)

Definition at line 346 of file costume.cpp.

void Grim::Costume::stopChores ( bool  ignoreLoopingChores = false,
int  msecs = 0 
)

Definition at line 365 of file costume.cpp.

int Grim::Costume::update ( uint  frameTime  )  [virtual]

Reimplemented in Grim::EMICostume.

Definition at line 440 of file costume.cpp.


Friends And Related Function Documentation

friend class Chore [friend]

Reimplemented in Grim::EMICostume.

Definition at line 123 of file costume.h.


Member Data Documentation

Definition at line 116 of file costume.h.

Definition at line 114 of file costume.h.

Definition at line 110 of file costume.h.

Definition at line 106 of file costume.h.

Definition at line 112 of file costume.h.

float Grim::Costume::_lookAtRate [protected]

Definition at line 121 of file costume.h.

Definition at line 118 of file costume.h.

int Grim::Costume::_numChores [protected]

Definition at line 115 of file costume.h.

Definition at line 109 of file costume.h.

Definition at line 119 of file costume.h.

Definition at line 117 of file costume.h.

Definition at line 107 of file costume.h.


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


Generated on Sat Jan 19 2019 05:06:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge