My Project
Static Public Member Functions | List of all members
ParaEngine::CAnimTable Class Reference

table for character animation. More...

#include <AnimTable.h>

Static Public Member Functions

static int GetAnimIDByName (const char *sName)
 
static int GetDefaultAnimIDof (int nID)
 if the nID does not exists, then a default ID will be used instead. More...
 
static bool IsWalkAnimation (int nID)
 check if nID can default to any move animation id like walk. More...
 
static CAnimTableGetInstance ()
 singleton instance. More...
 

Detailed Description

table for character animation.

Member Function Documentation

§ GetAnimIDByName()

int CAnimTable::GetAnimIDByName ( const char *  sName)
static
Parameters
sNamename of the animation.
Returns
: the index of the animID. If no animation matches the name, 0 is returned

for other long keys, search in the map.

§ GetDefaultAnimIDof()

int CAnimTable::GetDefaultAnimIDof ( int  nID)
static

if the nID does not exists, then a default ID will be used instead.

e.g. if there is no swimming, running is used, if there is no running walking is used. if there is no walking, standing is used. If not found, standing animation is used. for an entire, default hierarchy, please see the function body.

Parameters
nIDnID
Returns
: default ID returned.

§ GetInstance()

CAnimTable * CAnimTable::GetInstance ( )
static

singleton instance.

§ IsWalkAnimation()

bool ParaEngine::CAnimTable::IsWalkAnimation ( int  nID)
static

check if nID can default to any move animation id like walk.


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