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_HUD_H
|
|
|
|
#define GAME_CLIENT_COMPONENTS_HUD_H
|
|
|
|
#include <game/client/component.h>
|
|
|
|
|
|
|
|
class CHud : public CComponent
|
|
|
|
{
|
2011-03-10 09:08:14 +00:00
|
|
|
float m_Width, m_Height;
|
2010-05-29 07:25:38 +00:00
|
|
|
float m_AverageFPS;
|
|
|
|
|
|
|
|
void RenderCursor();
|
|
|
|
|
|
|
|
void RenderFps();
|
|
|
|
void RenderConnectionWarning();
|
|
|
|
void RenderTeambalanceWarning();
|
|
|
|
void RenderVoting();
|
2011-03-10 09:08:14 +00:00
|
|
|
void RenderHealthAndAmmo(const CNetObj_Character *pCharacter);
|
2010-05-30 12:01:11 +00:00
|
|
|
void RenderGameTimer();
|
|
|
|
void RenderSuddenDeath();
|
|
|
|
void RenderScoreHud();
|
2011-03-10 09:08:14 +00:00
|
|
|
void RenderSpectatorHud();
|
2010-05-30 12:01:11 +00:00
|
|
|
void RenderWarmupTimer();
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
void MapscreenToGroup(float CenterX, float CenterY, struct CMapItemGroup *PGroup);
|
|
|
|
public:
|
|
|
|
CHud();
|
|
|
|
|
|
|
|
virtual void OnReset();
|
|
|
|
virtual void OnRender();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|