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

#include <skeleton.h>

Inheritance diagram for Grim::Skeleton:
Collaboration diagram for Grim::Skeleton:

List of all members.

Public Types

typedef Common::HashMap
< Common::String, int,

Public Member Functions

 Skeleton (const Common::String &filename, Common::SeekableReadStream *data)
 ~Skeleton ()
void animate ()
void commitAnim ()
void addAnimation (AnimationStateEmi *anim)
void removeAnimation (AnimationStateEmi *anim)
int findJointIndex (const Common::String &name) const
bool hasJoint (const Common::String &name) const
JointgetJointNamed (const Common::String &name) const
JointgetParentJoint (const Joint *j) const
int getJointIndex (const Joint *j) const
AnimationLayergetLayer (int priority) const

Public Attributes

int _numJoints
JointMap _jointsMap

Static Public Attributes

static const int MAX_ANIMATION_LAYERS = 8

Private Member Functions

void loadSkeleton (Common::SeekableReadStream *data)
void initBone (int index)
void initBones ()
void resetAnim ()

Private Attributes

Common::List< AnimationStateEmi * > _activeAnims

Detailed Description

Definition at line 67 of file skeleton.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Grim::Skeleton::Skeleton ( const Common::String filename,
Common::SeekableReadStream data 

Definition at line 36 of file skeleton.cpp.

Grim::Skeleton::~Skeleton (  ) 

Definition at line 41 of file skeleton.cpp.

Member Function Documentation

void Grim::Skeleton::addAnimation ( AnimationStateEmi anim  ) 

Definition at line 166 of file skeleton.cpp.

void Grim::Skeleton::animate (  ) 

Definition at line 115 of file skeleton.cpp.

void Grim::Skeleton::commitAnim (  ) 

Definition at line 173 of file skeleton.cpp.

int Grim::Skeleton::findJointIndex ( const Common::String name  )  const

Definition at line 186 of file skeleton.cpp.

int Grim::Skeleton::getJointIndex ( const Joint j  )  const

Definition at line 216 of file skeleton.cpp.

Joint * Grim::Skeleton::getJointNamed ( const Common::String name  )  const

Definition at line 197 of file skeleton.cpp.

AnimationLayer * Grim::Skeleton::getLayer ( int  priority  )  const

Definition at line 222 of file skeleton.cpp.

Joint * Grim::Skeleton::getParentJoint ( const Joint j  )  const

Definition at line 209 of file skeleton.cpp.

bool Grim::Skeleton::hasJoint ( const Common::String name  )  const

Definition at line 193 of file skeleton.cpp.

void Grim::Skeleton::initBone ( int  index  )  [private]

Definition at line 72 of file skeleton.cpp.

void Grim::Skeleton::initBones (  )  [private]

Definition at line 87 of file skeleton.cpp.

void Grim::Skeleton::loadSkeleton ( Common::SeekableReadStream data  )  [private]

Definition at line 49 of file skeleton.cpp.

void Grim::Skeleton::removeAnimation ( AnimationStateEmi anim  ) 

Definition at line 169 of file skeleton.cpp.

void Grim::Skeleton::resetAnim (  )  [private]

Definition at line 98 of file skeleton.cpp.

Member Data Documentation

Definition at line 97 of file skeleton.h.

Definition at line 96 of file skeleton.h.

Definition at line 78 of file skeleton.h.

Definition at line 81 of file skeleton.h.

Definition at line 77 of file skeleton.h.

const int Grim::Skeleton::MAX_ANIMATION_LAYERS = 8 [static]

Definition at line 75 of file skeleton.h.

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

Generated on Sat Sep 12 2020 05:04:37 for ResidualVM by doxygen 1.7.1
curved edge   curved edge