ddnet/src/game/client/components/hud.h

53 lines
1.2 KiB
C
Raw Normal View History

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
{
float m_Width, m_Height;
2010-05-29 07:25:38 +00:00
float m_AverageFPS;
2010-05-29 07:25:38 +00:00
void RenderCursor();
2010-05-29 07:25:38 +00:00
void RenderFps();
void RenderConnectionWarning();
void RenderTeambalanceWarning();
void RenderVoting();
void RenderHealthAndAmmo(const CNetObj_Character *pCharacter);
void RenderGameTimer();
2012-01-10 21:40:48 +00:00
void RenderPauseNotification();
void RenderSuddenDeath();
void RenderScoreHud();
void RenderSpectatorHud();
void RenderWarmupTimer();
2010-05-29 07:25:38 +00:00
void MapscreenToGroup(float CenterX, float CenterY, struct CMapItemGroup *PGroup);
public:
CHud();
2010-05-29 07:25:38 +00:00
virtual void OnReset();
virtual void OnRender();
// DDRace
virtual void OnMessage(int MsgType, void *pRawMsg);
private:
void RenderRecord();
void RenderDDRaceEffects();
float m_CheckpointDiff;
float m_ServerRecord;
float m_PlayerRecord;
int m_DDRaceTime;
int m_LastReceivedTimeTick;
int m_CheckpointTick;
int m_DDRaceTick;
bool m_FinishTime;
bool m_DDRaceTimeReceived;
2010-05-29 07:25:38 +00:00
};
#endif