ddnet/src/game/client/animstate.h

27 lines
776 B
C
Raw Normal View History

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
#include <game/generated/client_data.h>
2010-05-29 07:25:38 +00:00
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:
CAnimKeyframe *GetBody() { return &m_Body; }
CAnimKeyframe *GetBackFoot() { return &m_BackFoot; }
CAnimKeyframe *GetFrontFoot() { return &m_FrontFoot; }
CAnimKeyframe *GetAttach() { return &m_Attach; }
2011-06-01 18:19:12 +00:00
void Set(CAnimation *pAnim, float Time);
void Add(CAnimation *pAnim, float Time, float Amount);
2010-05-29 07:25:38 +00:00
static CAnimState *GetIdle();
};
#endif