Pyrogenesis trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSkeletonAnimManager Class Reference

#include <SkeletonAnimManager.h>

Collaboration diagram for CSkeletonAnimManager:
Collaboration graph
[legend]

Public Member Functions

 CSkeletonAnimManager (CColladaManager &colladaManager)
 
 ~CSkeletonAnimManager ()
 
CSkeletonAnimDefGetAnimation (const VfsPath &pathname)
 
std::unique_ptr< CSkeletonAnimBuildAnimation (const VfsPath &pathname, const CStr8 &name, const CStr8 &ID, int frequency, float speed, float actionpos, float actionpos2, float soundpos)
 Load raw animation frame animation from given file, and build an animation specific to this model. More...
 

Private Member Functions

 NONCOPYABLE (CSkeletonAnimManager)
 

Private Attributes

std::unordered_map< VfsPath, std::unique_ptr< CSkeletonAnimDef > > m_Animations
 
CColladaManagerm_ColladaManager
 

Constructor & Destructor Documentation

◆ CSkeletonAnimManager()

CSkeletonAnimManager::CSkeletonAnimManager ( CColladaManager colladaManager)

◆ ~CSkeletonAnimManager()

CSkeletonAnimManager::~CSkeletonAnimManager ( )

Member Function Documentation

◆ BuildAnimation()

std::unique_ptr< CSkeletonAnim > CSkeletonAnimManager::BuildAnimation ( const VfsPath pathname,
const CStr8 &  name,
const CStr8 &  ID,
int  frequency,
float  speed,
float  actionpos,
float  actionpos2,
float  soundpos 
)

Load raw animation frame animation from given file, and build an animation specific to this model.

BuildAnimation: load raw animation frame animation from given file, and build a animation specific to this model.

Parameters
pathnameanimation file to load
nameanimation name (e.g. "idle")
IDspecific ID of the animation, to sync with props
frequencyinfluences the random choices
speedanimation speed as a factor of the default animation speed
actionposoffset of 'action' event, in range [0, 1]
actionpos2offset of 'action2' event, in range [0, 1]
soundoffset of 'sound' event, in range [0, 1]
Returns
new animation, or NULL on error

◆ GetAnimation()

CSkeletonAnimDef * CSkeletonAnimManager::GetAnimation ( const VfsPath pathname)

◆ NONCOPYABLE()

CSkeletonAnimManager::NONCOPYABLE ( CSkeletonAnimManager  )
private

Member Data Documentation

◆ m_Animations

std::unordered_map<VfsPath, std::unique_ptr<CSkeletonAnimDef> > CSkeletonAnimManager::m_Animations
private

◆ m_ColladaManager

CColladaManager& CSkeletonAnimManager::m_ColladaManager
private

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