mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
23 lines
547 B
C
23 lines
547 B
C
|
#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);
|
||
|
|
||
|
static CAnimState *GetIdle();
|
||
|
};
|
||
|
|
||
|
#endif
|