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
|
|
|
|
|
2020-09-25 16:11:59 +00:00
|
|
|
#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
|
|
|
|
2023-05-30 22:08:01 +00:00
|
|
|
void AnimAdd(CAnimState *pState, const CAnimState *pAdded, float Amount);
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
public:
|
2023-05-30 22:08:01 +00:00
|
|
|
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);
|
2022-01-22 13:12:59 +00:00
|
|
|
void Add(CAnimation *pAnim, float Time, float Amount);
|
2011-04-13 18:37:12 +00:00
|
|
|
|
2023-05-30 22:08:01 +00:00
|
|
|
const static CAnimState *GetIdle();
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|