DDraceNetwork Documentation
Loading...
Searching...
No Matches
CBackground Class Reference

#include <background.h>

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

Public Member Functions

 CBackground (ERenderType MapType=ERenderType::RENDERTYPE_BACKGROUND_FORCE, bool OnlineOnly=true)
 ~CBackground () override
int Sizeof () const override
void OnInit () override
void OnMapLoad () override
void OnRender () override
void LoadBackground ()
const char * MapName () const
Public Member Functions inherited from CMapLayers
 CMapLayers (ERenderType Type, bool OnlineOnly=true)
int Sizeof () const override
void OnInit () override
void OnRender () override
void OnMapLoad () override
virtual CCameraGetCurCamera ()
CEnvelopeStateEnvEvaluator ()
Public Member Functions inherited from CComponent
virtual void OnStateChange (int NewState, int OldState)
virtual void OnConsoleInit ()
virtual void OnShutdown ()
virtual void OnReset ()
virtual void OnWindowResize ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnRelease ()
virtual void OnMessage (int Msg, void *pRawMsg)
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

Protected Member Functions

virtual CBackgroundEngineMapCreateBGMap ()
Protected Member Functions inherited from CComponentInterfaces
class CGameClientGameClient () const
class IClientClient () const
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 CRenderMapRenderMap () 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

IEngineMapm_pMap
bool m_Loaded
char m_aMapName [MAX_MAP_LENGTH]
CBackgroundEngineMapm_pBackgroundMap
CLayersm_pBackgroundLayers
CMapImagesm_pBackgroundImages

Constructor & Destructor Documentation

◆ CBackground()

CBackground::CBackground ( ERenderType MapType = ERenderType::RENDERTYPE_BACKGROUND_FORCE,
bool OnlineOnly = true )

◆ ~CBackground()

CBackground::~CBackground ( )
override

Member Function Documentation

◆ CreateBGMap()

CBackgroundEngineMap * CBackground::CreateBGMap ( )
protectedvirtual

Reimplemented in CMenuBackground.

◆ LoadBackground()

void CBackground::LoadBackground ( )

◆ MapName()

const char * CBackground::MapName ( ) const
inline

◆ OnInit()

void CBackground::OnInit ( )
overridevirtual

Called to let the components run initialization code.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnMapLoad()

void CBackground::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ OnRender()

void CBackground::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

Reimplemented in CMenuBackground.

◆ Sizeof()

int CBackground::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Reimplemented in CMenuBackground.

Member Data Documentation

◆ m_aMapName

char CBackground::m_aMapName[MAX_MAP_LENGTH]
protected

◆ m_Loaded

bool CBackground::m_Loaded
protected

◆ m_pBackgroundImages

CMapImages* CBackground::m_pBackgroundImages
protected

◆ m_pBackgroundLayers

CLayers* CBackground::m_pBackgroundLayers
protected

◆ m_pBackgroundMap

CBackgroundEngineMap* CBackground::m_pBackgroundMap
protected

◆ m_pMap

IEngineMap* CBackground::m_pMap
protected

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