DDraceNetwork Docs
CStatboard Class Reference

#include <statboard.h>

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

Public Member Functions

 CStatboard ()
 
virtual int Sizeof () const override
 
virtual void OnReset () override
 
virtual void OnConsoleInit () override
 
virtual void OnRender () override
 
virtual void OnRelease () override
 
virtual void OnMessage (int MsgType, void *pRawMsg) override
 
bool IsActive () 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 RenderGlobalStats ()
 
void AutoStatScreenshot ()
 
void AutoStatCSV ()
 
std::string ReplaceCommata (char *pStr)
 
void FormatStats (char *pDest, size_t DestSize)
 

Static Private Member Functions

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

Private Attributes

bool m_Active
 
bool m_ScreenshotTaken
 
int64_t m_ScreenshotTime
 

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

◆ CStatboard()

CStatboard::CStatboard ( )

Member Function Documentation

◆ AutoStatCSV()

void CStatboard::AutoStatCSV ( )
private

◆ AutoStatScreenshot()

void CStatboard::AutoStatScreenshot ( )
private

◆ ConKeyStats()

void CStatboard::ConKeyStats ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ FormatStats()

void CStatboard::FormatStats ( char *  pDest,
size_t  DestSize 
)
private

◆ IsActive()

bool CStatboard::IsActive ( ) const

◆ OnConsoleInit()

void CStatboard::OnConsoleInit ( )
overridevirtual

Called to let the components register their console commands.

Reimplemented from CComponent.

◆ OnMessage()

void CStatboard::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 CStatboard::OnRelease ( )
overridevirtual

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

Reimplemented from CComponent.

◆ OnRender()

void CStatboard::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CStatboard::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.

◆ RenderGlobalStats()

void CStatboard::RenderGlobalStats ( )
private

◆ ReplaceCommata()

std::string CStatboard::ReplaceCommata ( char *  pStr)
private

◆ Sizeof()

virtual int CStatboard::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_Active

bool CStatboard::m_Active
private

◆ m_ScreenshotTaken

bool CStatboard::m_ScreenshotTaken
private

◆ m_ScreenshotTime

int64_t CStatboard::m_ScreenshotTime
private

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