DDraceNetwork Docs
CMapLayers Class Reference

#include <maplayers.h>

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

Classes

struct  SQuadLayerVisuals
 
struct  STileLayerVisuals
 

Public Types

enum  {
  TYPE_BACKGROUND = 0 , TYPE_BACKGROUND_FORCE , TYPE_FOREGROUND , TYPE_FULL_DESIGN ,
  TYPE_ALL = -1
}
 

Public Member Functions

 CMapLayers (int Type, bool OnlineOnly=true)
 
virtual ~CMapLayers ()
 
virtual int Sizeof () const override
 
virtual void OnInit () override
 
virtual void OnRender () override
 
virtual void OnMapLoad () 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)
 

Static Public Member Functions

static void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, void *pUser)
 

Protected Member Functions

virtual bool CanRenderMenuBackground ()
 
- 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
 

Private Member Functions

virtual CCameraGetCurCamera ()
 
void LayersOfGroupCount (CMapItemGroup *pGroup, int &TileLayerCount, int &QuadLayerCount, bool &PassedGameLayer)
 
void RenderTileLayer (int LayerIndex, const ColorRGBA &Color)
 
void RenderTileBorder (int LayerIndex, const ColorRGBA &Color, int BorderX0, int BorderY0, int BorderX1, int BorderY1)
 
void RenderKillTileBorder (int LayerIndex, const ColorRGBA &Color)
 
void RenderQuadLayer (int LayerIndex, CMapItemLayerQuads *pQuadLayer, bool ForceRender=false)
 

Private Attributes

CLayersm_pLayers
 
CMapImagesm_pImages
 
int m_Type
 
bool m_OnlineOnly
 
std::vector< STileLayerVisuals * > m_vpTileLayerVisuals
 
std::vector< SQuadLayerVisuals * > m_vpQuadLayerVisuals
 

Friends

class CBackground
 
class CMenuBackground
 

Additional Inherited Members

- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TYPE_BACKGROUND 
TYPE_BACKGROUND_FORCE 
TYPE_FOREGROUND 
TYPE_FULL_DESIGN 
TYPE_ALL 

Constructor & Destructor Documentation

◆ CMapLayers()

CMapLayers::CMapLayers ( int  Type,
bool  OnlineOnly = true 
)

◆ ~CMapLayers()

CMapLayers::~CMapLayers ( )
virtual

Member Function Documentation

◆ CanRenderMenuBackground()

virtual bool CMapLayers::CanRenderMenuBackground ( )
inlineprotectedvirtual

Reimplemented in CMenuBackground.

◆ EnvelopeEval()

void CMapLayers::EnvelopeEval ( int  TimeOffsetMillis,
int  Env,
ColorRGBA Result,
size_t  Channels,
void *  pUser 
)
static

◆ GetCurCamera()

CCamera * CMapLayers::GetCurCamera ( )
privatevirtual

Reimplemented in CMenuBackground.

◆ LayersOfGroupCount()

void CMapLayers::LayersOfGroupCount ( CMapItemGroup pGroup,
int &  TileLayerCount,
int &  QuadLayerCount,
bool &  PassedGameLayer 
)
private

◆ OnInit()

void CMapLayers::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

Reimplemented in CBackground, and CMenuBackground.

◆ OnMapLoad()

void CMapLayers::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

Reimplemented in CBackground, and CMenuBackground.

◆ OnRender()

void CMapLayers::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

Reimplemented in CBackground, and CMenuBackground.

◆ RenderKillTileBorder()

void CMapLayers::RenderKillTileBorder ( int  LayerIndex,
const ColorRGBA Color 
)
private

◆ RenderQuadLayer()

void CMapLayers::RenderQuadLayer ( int  LayerIndex,
CMapItemLayerQuads pQuadLayer,
bool  ForceRender = false 
)
private

◆ RenderTileBorder()

void CMapLayers::RenderTileBorder ( int  LayerIndex,
const ColorRGBA Color,
int  BorderX0,
int  BorderY0,
int  BorderX1,
int  BorderY1 
)
private

◆ RenderTileLayer()

void CMapLayers::RenderTileLayer ( int  LayerIndex,
const ColorRGBA Color 
)
private

◆ Sizeof()

virtual int CMapLayers::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Reimplemented in CBackground, and CMenuBackground.

Friends And Related Function Documentation

◆ CBackground

friend class CBackground
friend

◆ CMenuBackground

friend class CMenuBackground
friend

Member Data Documentation

◆ m_OnlineOnly

bool CMapLayers::m_OnlineOnly
private

◆ m_pImages

CMapImages* CMapLayers::m_pImages
private

◆ m_pLayers

CLayers* CMapLayers::m_pLayers
private

◆ m_Type

int CMapLayers::m_Type
private

◆ m_vpQuadLayerVisuals

std::vector<SQuadLayerVisuals *> CMapLayers::m_vpQuadLayerVisuals
private

◆ m_vpTileLayerVisuals

std::vector<STileLayerVisuals *> CMapLayers::m_vpTileLayerVisuals
private

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