DDraceNetwork Documentation
Loading...
Searching...
No Matches
CStatboard Class Reference

#include <statboard.h>

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

Public Member Functions

 CStatboard ()
int Sizeof () const override
void OnReset () override
void OnConsoleInit () override
void OnRender () override
void OnRelease () override
void OnMessage (int MsgType, void *pRawMsg) override
bool IsActive () const
Public Member Functions inherited from CComponent
virtual void OnStateChange (int NewState, int OldState)
virtual void OnInit ()
virtual void OnShutdown ()
virtual void OnWindowResize ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnMapLoad ()
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
virtual bool OnInput (const IInput::CEvent &Event)
virtual bool OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates)
Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
virtual ~CComponentInterfaces ()=default

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 CComponentInterfaces
class CGameClientGameClient () const
class IClientClient () const
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 CRenderMapRenderMap () 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

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()

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: