about summary refs log tree commit diff
path: root/src/game/client/components/hud.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/client/components/hud.h')
-rw-r--r--src/game/client/components/hud.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/game/client/components/hud.h b/src/game/client/components/hud.h
new file mode 100644
index 00000000..43f0e3a8
--- /dev/null
+++ b/src/game/client/components/hud.h
@@ -0,0 +1,27 @@
+#ifndef GAME_CLIENT_COMPONENTS_HUD_H
+#define GAME_CLIENT_COMPONENTS_HUD_H
+#include <game/client/component.h>
+
+class CHud : public CComponent
+{	
+	float m_Width;
+	float m_AverageFPS;
+	
+	void RenderCursor();
+	
+	void RenderFps();
+	void RenderConnectionWarning();
+	void RenderTeambalanceWarning();
+	void RenderVoting();
+	void RenderHealthAndAmmo();
+	void RenderGoals();
+	
+	void MapscreenToGroup(float CenterX, float CenterY, struct CMapItemGroup *PGroup);
+public:
+	CHud();
+	
+	virtual void OnReset();
+	virtual void OnRender();
+};
+
+#endif