ddnet/src/game/client/components/damageind.h

40 lines
779 B
C
Raw Normal View History

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_COMPONENTS_DAMAGEIND_H
#define GAME_CLIENT_COMPONENTS_DAMAGEIND_H
#include <base/vmath.h>
#include <game/client/component.h>
class CDamageInd : public CComponent
{
int64 m_Lastupdate;
struct CItem
{
vec2 m_Pos;
vec2 m_Dir;
2011-12-31 09:15:54 +00:00
float m_StartTime;
2010-05-29 07:25:38 +00:00
float m_StartAngle;
};
enum
{
MAX_ITEMS=64,
};
CItem m_aItems[MAX_ITEMS];
int m_NumItems;
CItem *CreateI();
void DestroyI(CItem *i);
int m_DmgIndQuadContainerIndex;
public:
2010-05-29 07:25:38 +00:00
CDamageInd();
void Create(vec2 Pos, vec2 Dir);
void Reset();
2010-05-29 07:25:38 +00:00
virtual void OnRender();
virtual void OnInit();
2010-05-29 07:25:38 +00:00
};
#endif