DDraceNetwork Docs
animstate.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_ANIMSTATE_H
4#define GAME_CLIENT_ANIMSTATE_H
5
7
9{
14
15 void AnimAdd(CAnimState *pState, const CAnimState *pAdded, float Amount);
16
17public:
18 const CAnimKeyframe *GetBody() const { return &m_Body; }
19 const CAnimKeyframe *GetBackFoot() const { return &m_BackFoot; }
20 const CAnimKeyframe *GetFrontFoot() const { return &m_FrontFoot; }
21 const CAnimKeyframe *GetAttach() const { return &m_Attach; }
22 void Set(CAnimation *pAnim, float Time);
23 void Add(CAnimation *pAnim, float Time, float Amount);
24
25 const static CAnimState *GetIdle();
26};
27
28#endif
Definition: animstate.h:9
const CAnimKeyframe * GetFrontFoot() const
Definition: animstate.h:20
static const CAnimState * GetIdle()
Definition: animstate.cpp:82
const CAnimKeyframe * GetAttach() const
Definition: animstate.h:21
CAnimKeyframe m_FrontFoot
Definition: animstate.h:12
CAnimKeyframe m_Attach
Definition: animstate.h:13
const CAnimKeyframe * GetBackFoot() const
Definition: animstate.h:19
void AnimAdd(CAnimState *pState, const CAnimState *pAdded, float Amount)
Definition: animstate.cpp:59
CAnimKeyframe m_Body
Definition: animstate.h:10
void Set(CAnimation *pAnim, float Time)
Definition: animstate.cpp:67
const CAnimKeyframe * GetBody() const
Definition: animstate.h:18
CAnimKeyframe m_BackFoot
Definition: animstate.h:11
void Add(CAnimation *pAnim, float Time, float Amount)
Definition: animstate.cpp:75
Definition: client_data.h:44
Definition: client_data.h:56