mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 10:38:20 +00:00
35 lines
511 B
C
35 lines
511 B
C
|
#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;
|
||
|
float m_Life;
|
||
|
float m_StartAngle;
|
||
|
};
|
||
|
|
||
|
enum
|
||
|
{
|
||
|
MAX_ITEMS=64,
|
||
|
};
|
||
|
|
||
|
CItem m_aItems[MAX_ITEMS];
|
||
|
int m_NumItems;
|
||
|
|
||
|
CItem *CreateI();
|
||
|
void DestroyI(CItem *i);
|
||
|
|
||
|
public:
|
||
|
CDamageInd();
|
||
|
|
||
|
void Create(vec2 Pos, vec2 Dir);
|
||
|
virtual void OnRender();
|
||
|
};
|
||
|
#endif
|