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

#include <infomessages.h>

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

Classes

struct  CInfoMsg

Public Member Functions

int Sizeof () const override
void OnWindowResize () override
void OnReset () override
void OnRender () override
void OnMessage (int MsgType, void *pRawMsg) override
void OnInit () override
Public Member Functions inherited from CComponent
virtual void OnStateChange (int NewState, int OldState)
virtual void OnConsoleInit ()
virtual void OnShutdown ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnRelease ()
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 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)
void ResetMessage (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 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

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

◆ 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

◆ ResetMessage()

void CInfoMessages::ResetMessage ( CInfoMsg & InfoMsg)
private

◆ Sizeof()

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: