DDraceNetwork Docs
scoreboard.h
Go to the documentation of this file.
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#include <engine/graphics.h>
8
10#include <game/client/ui_rect.h>
11
12class CScoreboard : public CComponent
13{
15 {
19
22 };
23
24 void RenderTitle(CUIRect TitleBar, int Team, const char *pTitle);
25 void RenderGoals(CUIRect Goals);
26 void RenderSpectators(CUIRect Spectators);
27 void RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart, int CountEnd, CScoreboardRenderState &State);
28 void RenderRecordingNotification(float x);
29
30 static void ConKeyScoreboard(IConsole::IResult *pResult, void *pUserData);
31 const char *GetTeamName(int Team) const;
32
35
37
38public:
40 virtual int Sizeof() const override { return sizeof(*this); }
41 virtual void OnConsoleInit() override;
42 virtual void OnInit() override;
43 virtual void OnReset() override;
44 virtual void OnRender() override;
45 virtual void OnRelease() override;
46 virtual void OnMessage(int MsgType, void *pRawMsg) override;
47
48 bool Active() const;
49};
50
51#endif
Definition: component.h:20
Definition: scoreboard.h:13
virtual int Sizeof() const override
Definition: scoreboard.h:40
IGraphics::CTextureHandle m_DeadTeeTexture
Definition: scoreboard.h:36
virtual void OnInit() override
Definition: scoreboard.cpp:38
virtual void OnRelease() override
Definition: scoreboard.cpp:49
virtual void OnMessage(int MsgType, void *pRawMsg) override
Definition: scoreboard.cpp:54
void RenderSpectators(CUIRect Spectators)
Definition: scoreboard.cpp:161
bool m_Active
Definition: scoreboard.h:33
virtual void OnConsoleInit() override
Definition: scoreboard.cpp:33
virtual void OnReset() override
Definition: scoreboard.cpp:43
CScoreboard()
Definition: scoreboard.cpp:22
void RenderRecordingNotification(float x)
Definition: scoreboard.cpp:601
float m_ServerRecord
Definition: scoreboard.h:34
void RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart, int CountEnd, CScoreboardRenderState &State)
Definition: scoreboard.cpp:248
void RenderGoals(CUIRect Goals)
Definition: scoreboard.cpp:133
bool Active() const
Definition: scoreboard.cpp:796
static void ConKeyScoreboard(IConsole::IResult *pResult, void *pUserData)
Definition: scoreboard.cpp:27
virtual void OnRender() override
Definition: scoreboard.cpp:641
void RenderTitle(CUIRect TitleBar, int Team, const char *pTitle)
Definition: scoreboard.cpp:68
const char * GetTeamName(int Team) const
Definition: scoreboard.cpp:821
Definition: ui_rect.h:11
Definition: console.h:47
Definition: graphics.h:201
Definition: scoreboard.h:15
float m_TeamStartY
Definition: scoreboard.h:17
CScoreboardRenderState()
Definition: scoreboard.h:20
int m_CurrentDDTeamSize
Definition: scoreboard.h:18
float m_TeamStartX
Definition: scoreboard.h:16