DDraceNetwork Docs
CMapImages Class Reference

#include <mapimages.h>

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

Public Member Functions

 CMapImages ()
 
virtual int Sizeof () const override
 
IGraphics::CTextureHandle Get (int Index) const
 
int Num () const
 
void OnMapLoadImpl (class CLayers *pLayers, class IMap *pMap)
 
virtual void OnMapLoad () override
 
virtual void OnInit () override
 
void LoadBackground (class CLayers *pLayers, class IMap *pMap)
 
IGraphics::CTextureHandle GetEntities (EMapImageEntityLayerType EntityLayerType)
 
IGraphics::CTextureHandle GetSpeedupArrow ()
 
IGraphics::CTextureHandle GetOverlayBottom ()
 
IGraphics::CTextureHandle GetOverlayTop ()
 
IGraphics::CTextureHandle GetOverlayCenter ()
 
void SetTextureScale (int Scale)
 
int GetTextureScale () const
 
void ChangeEntitiesPath (const char *pPath)
 
- 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 InitOverlayTextures ()
 
IGraphics::CTextureHandle UploadEntityLayerText (int TextureSize, int MaxWidth, int YOffset)
 
void UpdateEntityLayerText (CImageInfo &TextImage, int TextureSize, int MaxWidth, int YOffset, int NumbersPower, int MaxNumber=-1)
 

Static Private Member Functions

static void ConchainClTextEntitiesSize (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 

Private Attributes

IGraphics::CTextureHandle m_aTextures [MAX_MAPIMAGES]
 
int m_Count
 
char m_aEntitiesPath [IO_MAX_PATH_LENGTH]
 
bool m_aEntitiesIsLoaded [MAP_IMAGE_MOD_TYPE_COUNT *2]
 
bool m_SpeedupArrowIsLoaded
 
IGraphics::CTextureHandle m_aaEntitiesTextures [MAP_IMAGE_MOD_TYPE_COUNT *2][MAP_IMAGE_ENTITY_LAYER_TYPE_COUNT]
 
IGraphics::CTextureHandle m_SpeedupArrowTexture
 
IGraphics::CTextureHandle m_OverlayBottomTexture
 
IGraphics::CTextureHandle m_OverlayTopTexture
 
IGraphics::CTextureHandle m_OverlayCenterTexture
 
int m_TextureScale
 

Friends

class CBackground
 
class CMenuBackground
 

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
 

Constructor & Destructor Documentation

◆ CMapImages()

CMapImages::CMapImages ( )

Member Function Documentation

◆ ChangeEntitiesPath()

void CMapImages::ChangeEntitiesPath ( const char *  pPath)

◆ ConchainClTextEntitiesSize()

void CMapImages::ConchainClTextEntitiesSize ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ Get()

IGraphics::CTextureHandle CMapImages::Get ( int  Index) const
inline

◆ GetEntities()

IGraphics::CTextureHandle CMapImages::GetEntities ( EMapImageEntityLayerType  EntityLayerType)

◆ GetOverlayBottom()

IGraphics::CTextureHandle CMapImages::GetOverlayBottom ( )

◆ GetOverlayCenter()

IGraphics::CTextureHandle CMapImages::GetOverlayCenter ( )

◆ GetOverlayTop()

IGraphics::CTextureHandle CMapImages::GetOverlayTop ( )

◆ GetSpeedupArrow()

IGraphics::CTextureHandle CMapImages::GetSpeedupArrow ( )

◆ GetTextureScale()

int CMapImages::GetTextureScale ( ) const

◆ InitOverlayTextures()

void CMapImages::InitOverlayTextures ( )
private

◆ LoadBackground()

void CMapImages::LoadBackground ( class CLayers pLayers,
class IMap pMap 
)

◆ Num()

int CMapImages::Num ( ) const
inline

◆ OnInit()

void CMapImages::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

◆ OnMapLoad()

void CMapImages::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

◆ OnMapLoadImpl()

void CMapImages::OnMapLoadImpl ( class CLayers pLayers,
class IMap pMap 
)

◆ SetTextureScale()

void CMapImages::SetTextureScale ( int  Scale)

◆ Sizeof()

virtual int CMapImages::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

◆ UpdateEntityLayerText()

void CMapImages::UpdateEntityLayerText ( CImageInfo TextImage,
int  TextureSize,
int  MaxWidth,
int  YOffset,
int  NumbersPower,
int  MaxNumber = -1 
)
private

◆ UploadEntityLayerText()

IGraphics::CTextureHandle CMapImages::UploadEntityLayerText ( int  TextureSize,
int  MaxWidth,
int  YOffset 
)
private

Friends And Related Function Documentation

◆ CBackground

friend class CBackground
friend

◆ CMenuBackground

friend class CMenuBackground
friend

Member Data Documentation

◆ m_aaEntitiesTextures

◆ m_aEntitiesIsLoaded

bool CMapImages::m_aEntitiesIsLoaded[MAP_IMAGE_MOD_TYPE_COUNT *2]
private

◆ m_aEntitiesPath

char CMapImages::m_aEntitiesPath[IO_MAX_PATH_LENGTH]
private

◆ m_aTextures

IGraphics::CTextureHandle CMapImages::m_aTextures[MAX_MAPIMAGES]
private

◆ m_Count

int CMapImages::m_Count
private

◆ m_OverlayBottomTexture

IGraphics::CTextureHandle CMapImages::m_OverlayBottomTexture
private

◆ m_OverlayCenterTexture

IGraphics::CTextureHandle CMapImages::m_OverlayCenterTexture
private

◆ m_OverlayTopTexture

IGraphics::CTextureHandle CMapImages::m_OverlayTopTexture
private

◆ m_SpeedupArrowIsLoaded

bool CMapImages::m_SpeedupArrowIsLoaded
private

◆ m_SpeedupArrowTexture

IGraphics::CTextureHandle CMapImages::m_SpeedupArrowTexture
private

◆ m_TextureScale

int CMapImages::m_TextureScale
private

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