2007-05-07 18:33:24 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : SkeletonAnim.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : Instance of CSkeletonAnimDef for application onto a model
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
2004-05-30 02:46:58 +02:00
|
|
|
|
2007-05-07 18:33:24 +02:00
|
|
|
#ifndef INCLUDED_SKELETONANIM
|
|
|
|
#define INCLUDED_SKELETONANIM
|
2004-05-30 02:46:58 +02:00
|
|
|
|
2006-06-02 04:10:27 +02:00
|
|
|
#include "maths/Bound.h"
|
2004-05-30 02:46:58 +02:00
|
|
|
|
|
|
|
class CSkeletonAnimDef;
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CSkeletonAnim: an instance of a CSkeletonAnimDef, for application onto a model
|
|
|
|
class CSkeletonAnim
|
|
|
|
{
|
|
|
|
public:
|
2005-05-21 03:40:32 +02:00
|
|
|
// the name of the action which uses this animation (e.g. "idle")
|
|
|
|
CStr m_Name;
|
2004-05-30 02:46:58 +02:00
|
|
|
// the raw animation frame data
|
|
|
|
CSkeletonAnimDef* m_AnimDef;
|
|
|
|
// speed at which this animation runs
|
|
|
|
float m_Speed;
|
2007-02-10 04:09:52 +01: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-27 02:38:30 +02:00
|
|
|
float m_ActionPos;
|
|
|
|
float m_ActionPos2;
|
2004-05-30 02:46:58 +02:00
|
|
|
// object space bounds of the model when this animation is applied to it
|
|
|
|
CBound m_ObjectBounds;
|
|
|
|
};
|
|
|
|
|
2004-06-02 17:03:17 +02:00
|
|
|
#endif
|