DDraceNetwork Docs
CBroadcast Class Reference

#include <broadcast.h>

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

Public Member Functions

virtual int Sizeof () const override
 
virtual void OnReset () override
 
virtual void OnWindowResize () override
 
virtual void OnRender () override
 
virtual void OnMessage (int MsgType, void *pRawMsg) override
 
void DoBroadcast (const char *pText)
 
- 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 RenderServerBroadcast ()
 
void OnBroadcastMessage (const CNetMsg_Sv_Broadcast *pMsg)
 

Private Attributes

char m_aBroadcastText [1024]
 
int m_BroadcastTick
 
float m_BroadcastRenderOffset
 
STextContainerIndex m_TextContainerIndex
 

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
 

Member Function Documentation

◆ DoBroadcast()

void CBroadcast::DoBroadcast ( const char *  pText)

◆ OnBroadcastMessage()

void CBroadcast::OnBroadcastMessage ( const CNetMsg_Sv_Broadcast pMsg)
private

◆ OnMessage()

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

◆ OnRender()

void CBroadcast::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

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

◆ OnWindowResize()

void CBroadcast::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ RenderServerBroadcast()

void CBroadcast::RenderServerBroadcast ( )
private

◆ Sizeof()

virtual int CBroadcast::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aBroadcastText

char CBroadcast::m_aBroadcastText[1024]
private

◆ m_BroadcastRenderOffset

float CBroadcast::m_BroadcastRenderOffset
private

◆ m_BroadcastTick

int CBroadcast::m_BroadcastTick
private

◆ m_TextContainerIndex

STextContainerIndex CBroadcast::m_TextContainerIndex
private

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