DDraceNetwork Docs
CScoreboard Class Reference

#include <scoreboard.h>

Inheritance diagram for CScoreboard:
[legend]
Collaboration diagram for CScoreboard:
[legend]

Classes

struct  CScoreboardRenderState
 

Public Member Functions

 CScoreboard ()
 
virtual int Sizeof () const override
 
virtual void OnConsoleInit () override
 
virtual void OnReset () override
 
virtual void OnRender () override
 
virtual void OnRelease () override
 
virtual void OnMessage (int MsgType, void *pRawMsg) override
 
bool Active () const
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMapLoad ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 

Private Member Functions

void RenderTitle (CUIRect TitleBar, int Team, const char *pTitle)
 
void RenderGoals (CUIRect Goals)
 
void RenderSpectators (CUIRect Spectators)
 
void RenderScoreboard (CUIRect Scoreboard, int Team, int CountStart, int CountEnd, CScoreboardRenderState &State)
 
void RenderRecordingNotification (float x)
 
const char * GetTeamName (int Team) const
 

Static Private Member Functions

static void ConKeyScoreboard (IConsole::IResult *pResult, void *pUserData)
 

Private Attributes

bool m_Active
 
float m_ServerRecord
 

Additional Inherited Members

- Protected Member Functions inherited from CComponent
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Constructor & Destructor Documentation

◆ CScoreboard()

CScoreboard::CScoreboard ( )

Member Function Documentation

◆ Active()

bool CScoreboard::Active ( ) const

◆ ConKeyScoreboard()

void CScoreboard::ConKeyScoreboard ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ GetTeamName()

const char * CScoreboard::GetTeamName ( int  Team) const
private

◆ OnConsoleInit()

void CScoreboard::OnConsoleInit ( )
overridevirtual

Called to let the components register their console commands.

Reimplemented from CComponent.

◆ OnMessage()

void CScoreboard::OnMessage ( int  Msg,
void *  pRawMsg 
)
overridevirtual

Called when receiving a network message.

Parameters
MsgThe message type.
pRawMsgThe message data.
See also
NETMSGTYPE_SV_DDRACETIME
CNetMsg_Sv_DDRaceTime

Reimplemented from CComponent.

◆ OnRelease()

void CScoreboard::OnRelease ( )
overridevirtual

Called when the input gets released, for example when a text box loses focus.

Reimplemented from CComponent.

◆ OnRender()

void CScoreboard::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CScoreboard::OnReset ( )
overridevirtual

Called to reset the component. This method is usually called on your component constructor to avoid code duplication.

See also
CHud::CHud()
CHud::OnReset()

Reimplemented from CComponent.

◆ RenderGoals()

void CScoreboard::RenderGoals ( CUIRect  Goals)
private

◆ RenderRecordingNotification()

void CScoreboard::RenderRecordingNotification ( float  x)
private

◆ RenderScoreboard()

void CScoreboard::RenderScoreboard ( CUIRect  Scoreboard,
int  Team,
int  CountStart,
int  CountEnd,
CScoreboardRenderState State 
)
private

◆ RenderSpectators()

void CScoreboard::RenderSpectators ( CUIRect  Spectators)
private

◆ RenderTitle()

void CScoreboard::RenderTitle ( CUIRect  TitleBar,
int  Team,
const char *  pTitle 
)
private

◆ Sizeof()

virtual int CScoreboard::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_Active

bool CScoreboard::m_Active
private

◆ m_ServerRecord

float CScoreboard::m_ServerRecord
private

The documentation for this class was generated from the following files: