ddnet/src/game/client/animstate.h

25 lines
738 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
class CAnimState
{
ANIM_KEYFRAME m_Body;
ANIM_KEYFRAME m_BackFoot;
ANIM_KEYFRAME m_FrontFoot;
ANIM_KEYFRAME m_Attach;
public:
ANIM_KEYFRAME *GetBody() { return &m_Body; };
ANIM_KEYFRAME *GetBackFoot() { return &m_BackFoot; };
ANIM_KEYFRAME *GetFrontFoot() { return &m_FrontFoot; };
ANIM_KEYFRAME *GetAttach() { return &m_Attach; };
void Set(ANIMATION *pAnim, float Time);
void Add(ANIMATION *pAdded, float Time, float Amount);
2010-05-29 07:25:38 +00:00
static CAnimState *GetIdle();
};
#endif