mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
0bac9f0de8
Also include what you use explicitly
27 lines
781 B
C++
27 lines
781 B
C++
/* (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. */
|
|
#ifndef GAME_CLIENT_ANIMSTATE_H
|
|
#define GAME_CLIENT_ANIMSTATE_H
|
|
|
|
#include <game/generated/client_data.h>
|
|
|
|
class CAnimState
|
|
{
|
|
CAnimKeyframe m_Body;
|
|
CAnimKeyframe m_BackFoot;
|
|
CAnimKeyframe m_FrontFoot;
|
|
CAnimKeyframe m_Attach;
|
|
|
|
public:
|
|
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);
|
|
|
|
static CAnimState *GetIdle();
|
|
};
|
|
|
|
#endif
|