about summary refs log tree commit diff
path: root/src/game/client/components/damageind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/damageind.h')
-rw-r--r--src/game/client/components/damageind.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/game/client/components/damageind.h b/src/game/client/components/damageind.h
new file mode 100644
index 00000000..b6e0bb47
--- /dev/null
+++ b/src/game/client/components/damageind.h
@@ -0,0 +1,34 @@
+#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