DDraceNetwork Docs
CCountryFlags Class Reference

#include <countryflags.h>

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

Classes

struct  CCountryFlag
 

Public Member Functions

virtual int Sizeof () const override
 
void OnInit () override
 
size_t Num () const
 
const CCountryFlagGetByCountryCode (int CountryCode) const
 
const CCountryFlagGetByIndex (size_t Index) const
 
void Render (const CCountryFlag *pFlag, ColorRGBA Color, float x, float y, float w, float h)
 
void Render (int CountryCode, ColorRGBA Color, float x, float y, float w, float h)
 
- 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  { CODE_LB = -1 , CODE_UB = 999 , CODE_RANGE = CODE_UB - CODE_LB + 1 }
 

Private Member Functions

void LoadCountryflagsIndexfile ()
 

Private Attributes

std::vector< CCountryFlagm_vCountryFlags
 
size_t m_aCodeIndexLUT [CODE_RANGE]
 
int m_FlagsQuadContainerIndex
 

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
CODE_LB 
CODE_UB 
CODE_RANGE 

Member Function Documentation

◆ GetByCountryCode()

const CCountryFlags::CCountryFlag * CCountryFlags::GetByCountryCode ( int  CountryCode) const

◆ GetByIndex()

const CCountryFlags::CCountryFlag * CCountryFlags::GetByIndex ( size_t  Index) const

◆ LoadCountryflagsIndexfile()

void CCountryFlags::LoadCountryflagsIndexfile ( )
private

◆ Num()

size_t CCountryFlags::Num ( ) const

◆ OnInit()

void CCountryFlags::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ Render() [1/2]

void CCountryFlags::Render ( const CCountryFlag pFlag,
ColorRGBA  Color,
float  x,
float  y,
float  w,
float  h 
)

◆ Render() [2/2]

void CCountryFlags::Render ( int  CountryCode,
ColorRGBA  Color,
float  x,
float  y,
float  w,
float  h 
)

◆ Sizeof()

virtual int CCountryFlags::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aCodeIndexLUT

size_t CCountryFlags::m_aCodeIndexLUT[CODE_RANGE]
private

◆ m_FlagsQuadContainerIndex

int CCountryFlags::m_FlagsQuadContainerIndex
private

◆ m_vCountryFlags

std::vector<CCountryFlag> CCountryFlags::m_vCountryFlags
private

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