Pyrogenesis
trunk
|
#include <ObjectEntry.h>
Public Member Functions | |
CObjectEntry (CObjectBase *base, CSimulation2 &simulation) | |
~CObjectEntry () | |
bool | BuildVariation (const std::vector< std::set< CStr > > &selections, const std::vector< u8 > &variationKey, CObjectManager &objectManager) |
CSkeletonAnim * | GetRandomAnimation (const CStr &animationName, const CStr &ID="") const |
Returns a randomly-chosen animation matching the given ID, or animationName if ID is empty. More... | |
std::vector< CSkeletonAnim * > | GetAnimations (const CStr &animationName, const CStr &ID="") const |
Returns all the animations matching the given ID or animationName if ID is empty. More... | |
Public Attributes | |
CObjectBase * | m_Base |
std::vector< CObjectBase::Samp > | m_Samplers |
VfsPath | m_ModelName |
CColor | m_Color |
std::wstring | m_ProjectileModelName |
CModelAbstract * | m_Model |
bool | m_Outdated |
Private Types | |
typedef std::multimap< CStr, CSkeletonAnim * > | SkeletonAnimMap |
Private Member Functions | |
NONCOPYABLE (CObjectEntry) | |
Private Attributes | |
CSimulation2 & | m_Simulation |
SkeletonAnimMap | m_Animations |
|
private |
CObjectEntry::CObjectEntry | ( | CObjectBase * | base, |
CSimulation2 & | simulation | ||
) |
CObjectEntry::~CObjectEntry | ( | ) |
bool CObjectEntry::BuildVariation | ( | const std::vector< std::set< CStr > > & | selections, |
const std::vector< u8 > & | variationKey, | ||
CObjectManager & | objectManager | ||
) |
std::vector< CSkeletonAnim * > CObjectEntry::GetAnimations | ( | const CStr & | animationName, |
const CStr & | ID = "" |
||
) | const |
Returns all the animations matching the given ID or animationName if ID is empty.
If none found returns Idle animations (which are always added)
CSkeletonAnim * CObjectEntry::GetRandomAnimation | ( | const CStr & | animationName, |
const CStr & | ID = "" |
||
) | const |
Returns a randomly-chosen animation matching the given ID, or animationName if ID is empty.
The chosen animation is picked randomly from the GetAnimations list with the frequencies as weights (if there are any defined). This method should always return an animation
|
private |
|
private |
CObjectBase* CObjectEntry::m_Base |
CColor CObjectEntry::m_Color |
CModelAbstract* CObjectEntry::m_Model |
VfsPath CObjectEntry::m_ModelName |
bool CObjectEntry::m_Outdated |
std::wstring CObjectEntry::m_ProjectileModelName |
std::vector<CObjectBase::Samp> CObjectEntry::m_Samplers |
|
private |