ddnet/src/game/client/animstate.h

29 lines
906 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
void AnimAdd(CAnimState *pState, const CAnimState *pAdded, float Amount);
2010-05-29 07:25:38 +00:00
public:
const CAnimKeyframe *GetBody() const { return &m_Body; }
const CAnimKeyframe *GetBackFoot() const { return &m_BackFoot; }
const CAnimKeyframe *GetFrontFoot() const { return &m_FrontFoot; }
const CAnimKeyframe *GetAttach() const { 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);
const static CAnimState *GetIdle();
2010-05-29 07:25:38 +00:00
};
#endif