DDraceNetwork Docs
CNamePlates Class Reference

#include <nameplates.h>

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

Public Member Functions

virtual int Sizeof () const override
 
virtual void OnWindowResize () override
 
virtual void OnInit () override
 
virtual void OnRender () 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 Member Functions

void RenderNameplate (vec2 Position, const CNetObj_PlayerInfo *pPlayerInfo, float Alpha, bool ForceAlpha)
 
void ResetNamePlates ()
 

Private Attributes

SPlayerNamePlate m_aNamePlates [MAX_CLIENTS]
 
int m_DirectionQuadContainerIndex
 

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

◆ OnInit()

void CNamePlates::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ OnRender()

void CNamePlates::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnWindowResize()

void CNamePlates::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ RenderNameplate()

void CNamePlates::RenderNameplate ( vec2  Position,
const CNetObj_PlayerInfo pPlayerInfo,
float  Alpha,
bool  ForceAlpha 
)
private

◆ ResetNamePlates()

void CNamePlates::ResetNamePlates ( )
private

◆ Sizeof()

virtual int CNamePlates::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aNamePlates

SPlayerNamePlate CNamePlates::m_aNamePlates[MAX_CLIENTS]
private

◆ m_DirectionQuadContainerIndex

int CNamePlates::m_DirectionQuadContainerIndex
private

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