2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef GAME_CLIENT_ANIMSTATE_H
|
|
|
|
#define GAME_CLIENT_ANIMSTATE_H
|
|
|
|
|
|
|
|
class CAnimState
|
|
|
|
{
|
2011-06-01 18:19:12 +00:00
|
|
|
CAnimKeyframe m_Body;
|
|
|
|
CAnimKeyframe m_BackFoot;
|
|
|
|
CAnimKeyframe m_FrontFoot;
|
|
|
|
CAnimKeyframe m_Attach;
|
2010-05-29 07:25:38 +00:00
|
|
|
|
|
|
|
public:
|
2011-06-01 18:19:12 +00:00
|
|
|
CAnimKeyframe *GetBody() { return &m_Body; };
|
|
|
|
CAnimKeyframe *GetBackFoot() { return &m_BackFoot; };
|
|
|
|
CAnimKeyframe *GetFrontFoot() { return &m_FrontFoot; };
|
|
|
|
CAnimKeyframe *GetAttach() { return &m_Attach; };
|
|
|
|
void Set(CAnimation *pAnim, float Time);
|
|
|
|
void Add(CAnimation *pAdded, float Time, float Amount);
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
static CAnimState *GetIdle();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|