![]() |
DDraceNetwork Documentation
|
#include <infomessages.h>
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 | ~CComponent ()=default |
| 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 CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
|
private |
|
private |
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
|
private |
Called when receiving a network message.
| Msg | The message type. |
| pRawMsg | The message data. |
Reimplemented from CComponent.
|
private |
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
Reimplemented from CComponent.
|
private |
|
overridevirtual |
Called when the window has been resized.
Reimplemented from CComponent.
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
|
private |
|
private |
|
private |
|
private |