DDraceNetwork Docs
CInfoMessages Class Reference

#include <infomessages.h>

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

Classes

struct  CInfoMsg
 

Public Member Functions

virtual int Sizeof () const override
 
virtual void OnWindowResize () override
 
virtual void OnRefreshSkins () override
 
virtual void OnReset () override
 
virtual void OnRender () override
 
virtual void OnMessage (int MsgType, void *pRawMsg) override
 
virtual void OnInit () override
 
- 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 Types

enum  { MAX_INFOMSGS = 5 , MAX_KILLMSG_TEAM_MEMBERS = 4 }
 
enum  EType { TYPE_KILL , TYPE_FINISH }
 

Private Member Functions

CInfoMsg CreateInfoMsg (EType Type)
 
void AddInfoMsg (const CInfoMsg &InfoMsg)
 
void RenderKillMsg (const CInfoMsg &InfoMsg, float x, float y)
 
void RenderFinishMsg (const CInfoMsg &InfoMsg, float x, float y)
 
void OnTeamKillMessage (const struct CNetMsg_Sv_KillMsgTeam *pMsg)
 
void OnKillMessage (const struct CNetMsg_Sv_KillMsg *pMsg)
 
void OnRaceFinishMessage (const struct CNetMsg_Sv_RaceFinish *pMsg)
 
void CreateTextContainersIfNotCreated (CInfoMsg &InfoMsg)
 
void DeleteTextContainers (CInfoMsg &InfoMsg)
 

Private Attributes

int m_SpriteQuadContainerIndex = -1
 
int m_QuadOffsetRaceFlag = -1
 
CInfoMsg m_aInfoMsgs [MAX_INFOMSGS]
 
int m_InfoMsgCurrent
 

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 Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_INFOMSGS 
MAX_KILLMSG_TEAM_MEMBERS 

◆ EType

enum CInfoMessages::EType
private
Enumerator
TYPE_KILL 
TYPE_FINISH 

Member Function Documentation

◆ AddInfoMsg()

void CInfoMessages::AddInfoMsg ( const CInfoMsg InfoMsg)
private

◆ CreateInfoMsg()

CInfoMessages::CInfoMsg CInfoMessages::CreateInfoMsg ( EType  Type)
private

◆ CreateTextContainersIfNotCreated()

void CInfoMessages::CreateTextContainersIfNotCreated ( CInfoMsg InfoMsg)
private

◆ DeleteTextContainers()

void CInfoMessages::DeleteTextContainers ( CInfoMsg InfoMsg)
private

◆ OnInit()

void CInfoMessages::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ OnKillMessage()

void CInfoMessages::OnKillMessage ( const struct CNetMsg_Sv_KillMsg pMsg)
private

◆ OnMessage()

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

◆ OnRaceFinishMessage()

void CInfoMessages::OnRaceFinishMessage ( const struct CNetMsg_Sv_RaceFinish *  pMsg)
private

◆ OnRefreshSkins()

void CInfoMessages::OnRefreshSkins ( )
overridevirtual

Called when skins have been invalidated and must be updated.

Reimplemented from CComponent.

◆ OnRender()

void CInfoMessages::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

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

◆ OnTeamKillMessage()

void CInfoMessages::OnTeamKillMessage ( const struct CNetMsg_Sv_KillMsgTeam pMsg)
private

◆ OnWindowResize()

void CInfoMessages::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ RenderFinishMsg()

void CInfoMessages::RenderFinishMsg ( const CInfoMsg InfoMsg,
float  x,
float  y 
)
private

◆ RenderKillMsg()

void CInfoMessages::RenderKillMsg ( const CInfoMsg InfoMsg,
float  x,
float  y 
)
private

◆ Sizeof()

virtual int CInfoMessages::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aInfoMsgs

CInfoMsg CInfoMessages::m_aInfoMsgs[MAX_INFOMSGS]
private

◆ m_InfoMsgCurrent

int CInfoMessages::m_InfoMsgCurrent
private

◆ m_QuadOffsetRaceFlag

int CInfoMessages::m_QuadOffsetRaceFlag = -1
private

◆ m_SpriteQuadContainerIndex

int CInfoMessages::m_SpriteQuadContainerIndex = -1
private

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