about summary refs log tree commit diff
path: root/src/game/client/animstate.h
blob: cb3b0e1877eef069ee036272924f7eb5b2c2182d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* (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

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