DDraceNetwork Docs
CBackground Class Reference

#include <background.h>

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

Public Member Functions

 CBackground (int MapType=CMapLayers::TYPE_BACKGROUND_FORCE, bool OnlineOnly=true)
 
virtual ~CBackground ()
 
virtual int Sizeof () const override
 
virtual void OnInit () override
 
virtual void OnMapLoad () override
 
virtual void OnRender () override
 
void LoadBackground ()
 
const char * MapName () const
 
- Public Member Functions inherited from CMapLayers
 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)
 

Protected Member Functions

virtual CBackgroundEngineMapCreateBGMap ()
 
- Protected Member Functions inherited from CMapLayers
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
 

Protected Attributes

IEngineMapm_pMap
 
bool m_Loaded
 
char m_aMapName [MAX_MAP_LENGTH]
 
CBackgroundEngineMapm_pBackgroundMap
 
CLayersm_pBackgroundLayers
 
CMapImagesm_pBackgroundImages
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Additional Inherited Members

- Public Types inherited from CMapLayers
enum  {
  TYPE_BACKGROUND = 0 , TYPE_BACKGROUND_FORCE , TYPE_FOREGROUND , TYPE_FULL_DESIGN ,
  TYPE_ALL = -1
}
 
- Static Public Member Functions inherited from CMapLayers
static void EnvelopeEval (int TimeOffsetMillis, int Env, ColorRGBA &Result, size_t Channels, void *pUser)
 

Constructor & Destructor Documentation

◆ CBackground()

CBackground::CBackground ( int  MapType = CMapLayers::TYPE_BACKGROUND_FORCE,
bool  OnlineOnly = true 
)

◆ ~CBackground()

CBackground::~CBackground ( )
virtual

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 CMapLayers.

Reimplemented in CMenuBackground.

◆ OnMapLoad()

void CBackground::OnMapLoad ( )
overridevirtual

Called on map load.

Reimplemented from CMapLayers.

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 CMapLayers.

Reimplemented in CMenuBackground.

◆ Sizeof()

virtual int CBackground::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Reimplemented from CMapLayers.

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: