DDraceNetwork Docs
damageind.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_COMPONENTS_DAMAGEIND_H
4#define GAME_CLIENT_COMPONENTS_DAMAGEIND_H
5#include <base/color.h>
6#include <base/vmath.h>
8
9class CDamageInd : public CComponent
10{
11 struct CItem
12 {
18 };
19
20 enum
21 {
23 };
24
27
29
30public:
31 CDamageInd();
32 virtual int Sizeof() const override { return sizeof(*this); }
33
34 void Create(vec2 Pos, vec2 Dir, float Alpha);
35 virtual void OnReset() override;
36 virtual void OnRender() override;
37 virtual void OnInit() override;
38};
39#endif
Definition: component.h:20
Definition: damageind.h:10
virtual int Sizeof() const override
Definition: damageind.h:32
virtual void OnRender() override
Definition: damageind.cpp:32
int m_NumItems
Definition: damageind.h:26
virtual void OnInit() override
Definition: damageind.cpp:81
@ MAX_ITEMS
Definition: damageind.h:22
int m_DmgIndQuadContainerIndex
Definition: damageind.h:28
virtual void OnReset() override
Definition: damageind.cpp:94
CDamageInd()
Definition: damageind.cpp:13
void Create(vec2 Pos, vec2 Dir, float Alpha)
Definition: damageind.cpp:18
CItem m_aItems[MAX_ITEMS]
Definition: damageind.h:25
Definition: color.h:210
Definition: damageind.h:12
vec2 m_Pos
Definition: damageind.h:13
float m_StartAngle
Definition: damageind.h:16
float m_RemainingLife
Definition: damageind.h:15
vec2 m_Dir
Definition: damageind.h:14
ColorRGBA m_Color
Definition: damageind.h:17