2007-05-07 09:33:24 -07:00
|
|
|
/**
|
|
|
|
|
* =========================================================================
|
|
|
|
|
* File : SkeletonAnim.h
|
|
|
|
|
* Project : 0 A.D.
|
|
|
|
|
* Description : Instance of CSkeletonAnimDef for application onto a model
|
|
|
|
|
* =========================================================================
|
|
|
|
|
*/
|
2004-05-29 17:46:58 -07:00
|
|
|
|
2007-05-07 09:33:24 -07:00
|
|
|
#ifndef INCLUDED_SKELETONANIM
|
|
|
|
|
#define INCLUDED_SKELETONANIM
|
2004-05-29 17:46:58 -07:00
|
|
|
|
2006-06-01 19:10:27 -07:00
|
|
|
#include "maths/Bound.h"
|
2004-05-29 17:46:58 -07:00
|
|
|
|
|
|
|
|
class CSkeletonAnimDef;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// CSkeletonAnim: an instance of a CSkeletonAnimDef, for application onto a model
|
|
|
|
|
class CSkeletonAnim
|
|
|
|
|
{
|
|
|
|
|
public:
|
2005-05-20 18:40:32 -07:00
|
|
|
// the name of the action which uses this animation (e.g. "idle")
|
|
|
|
|
CStr m_Name;
|
2004-05-29 17:46:58 -07:00
|
|
|
// the raw animation frame data
|
|
|
|
|
CSkeletonAnimDef* m_AnimDef;
|
|
|
|
|
// speed at which this animation runs
|
|
|
|
|
float m_Speed;
|
2007-02-09 19:09:52 -08:00
|
|
|
// Times during the animation at which the interesting bits happen. Measured
|
|
|
|
|
// as fractions (0..1) of the total animation length.
|
|
|
|
|
// ActionPos is used for melee hits, projectile launches, etc.
|
|
|
|
|
// ActionPos2 is used for loading projectile ammunition.
|
2005-05-26 17:38:30 -07:00
|
|
|
float m_ActionPos;
|
|
|
|
|
float m_ActionPos2;
|
2004-05-29 17:46:58 -07:00
|
|
|
// object space bounds of the model when this animation is applied to it
|
|
|
|
|
CBound m_ObjectBounds;
|
|
|
|
|
};
|
|
|
|
|
|
2004-06-02 08:03:17 -07:00
|
|
|
#endif
|