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_SCOREBOARD_H
4#define GAME_CLIENT_COMPONENTS_SCOREBOARD_H
5
6#include <engine/console.h>
7
8#include <game/client/component.h>
9
10class CScoreboard : public CComponent
11{
12 void RenderGoals(float x, float y, float w);
13 void RenderSpectators(float x, float y, float w, float h);
14 void RenderScoreboard(float x, float y, float w, int Team, const char *pTitle, int NumPlayers = -1);
15 void RenderRecordingNotification(float x);
16
17 static void ConKeyScoreboard(IConsole::IResult *pResult, void *pUserData);
18
19 const char *GetClanName(int Team);
20
21 bool m_Active;
22
23public:
24 CScoreboard();
25 virtual int Sizeof() const override { return sizeof(*this); }
26 virtual void OnReset() override;
27 virtual void OnConsoleInit() override;
28 virtual void OnRender() override;
29 virtual void OnRelease() override;
30
31 bool Active();
32
33 // DDRace
34
35 virtual void OnMessage(int MsgType, void *pRawMsg) override;
36
37private:
38 float m_ServerRecord;
39};
40
41#endif
42