#include <animation.h>
Inheritance diagram for Animation:
Public Member Functions | |
Animation () | |
Animation (const Animation< KeyframeType > &rkAnimation) | |
virtual | ~Animation () |
virtual void | AddKeyframe (KeyframeType *pkKeyframe) |
virtual void | Update (float fDeltaTime) |
bool | IsActive () const |
virtual void | Activate () |
virtual void | Deactivate () |
bool | Toggle () |
Public Attributes | |
KeyframeVec | m_vpkKeyframes |
unsigned int | m_uiID |
HashString | m_strName |
float | m_fLength |
float | m_fCurTime |
int | m_iLastKeyframe |
int | m_iNextKeyframe |
float | m_fOffset |
Protected Attributes | |
bool | m_bActive |
|
Set default values |
|
Copy data from reference animation object
|
|
Delete keyframes |
|
Insert new keyframe
|
|
Update animation
Reimplemented from UpdateEntity. |
|
Query state of object
|
|
Activate object |
|
Deactivate object |
|
Toggle active state. This method does not need to be overloaded, it is only a wrapper to Activate and Deactivate
|
|
Keyframes ordered by timestamp |
|
Animation ID |
|
Animation name |
|
Lenght of animation in seconds |
|
Current time in [0,1] interval |
|
Last keyframe |
|
Next keyframe |
|
Current time offset from last keyframe to next keyframe (in [0,1] range) |
|
Active flag |