DDNet documentation
Loading...
Searching...
No Matches
CMapObject Class Reference

#include <map_object.h>

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

Public Member Functions

 CMapObject (CEditorMap *pMap)
 CMapObject (const CMapObject &Other)
virtual ~CMapObject ()=default
virtual void OnAttach (CEditorMap *pMap)
const CEditor * Editor () const
CEditor * Editor ()
const CEditorMap * Map () const
CEditorMap * Map ()
const IGraphics * Graphics () const
IGraphics * Graphics ()
const ISound * Sound () const
ISound * Sound ()
const IStorage * Storage () const
IStorage * Storage ()
const ITextRender * TextRender () const
ITextRender * TextRender ()

Public Attributes

float m_aLayerOffset [2]
bool m_UseClipping
float m_aaClipArea [2][2]
float m_aSpeed [2]
float m_aaScreenOffset [2][2]
float m_aaBaseArea [2][2]
float m_aaExtendedArea [2][2]

Static Public Attributes

static constexpr float ms_aStandardScreen [2] = {1430 / 2.f, 1050 / 2.f}

Private Attributes

CEditorMap * m_pMap

Constructor & Destructor Documentation

◆ CMapObject() [1/2]

CMapObject::CMapObject ( CEditorMap * pMap)
explicit

◆ CMapObject() [2/2]

CMapObject::CMapObject ( const CMapObject & Other)

◆ ~CMapObject()

virtual CMapObject::~CMapObject ( )
virtualdefault

Member Function Documentation

◆ Editor() [1/2]

CEditor * CMapObject::Editor ( )

◆ Editor() [2/2]

const CEditor * CMapObject::Editor ( ) const

◆ Graphics() [1/2]

IGraphics * CMapObject::Graphics ( )

◆ Graphics() [2/2]

const IGraphics * CMapObject::Graphics ( ) const

◆ Map() [1/2]

CEditorMap * CMapObject::Map ( )

◆ Map() [2/2]

const CEditorMap * CMapObject::Map ( ) const

◆ OnAttach()

void CMapObject::OnAttach ( CEditorMap * pMap)
virtual

Reimplemented in CEditorImage, and CLayerGroup.

◆ Sound() [1/2]

ISound * CMapObject::Sound ( )

◆ Sound() [2/2]

const ISound * CMapObject::Sound ( ) const

◆ Storage() [1/2]

IStorage * CMapObject::Storage ( )

◆ Storage() [2/2]

const IStorage * CMapObject::Storage ( ) const

◆ TextRender() [1/2]

ITextRender * CMapObject::TextRender ( )

◆ TextRender() [2/2]

const ITextRender * CMapObject::TextRender ( ) const

Member Data Documentation

◆ m_aaBaseArea

float CMapObject::m_aaBaseArea[2][2]

◆ m_aaClipArea

float CMapObject::m_aaClipArea[2][2]

◆ m_aaExtendedArea

float CMapObject::m_aaExtendedArea[2][2]

◆ m_aaScreenOffset

float CMapObject::m_aaScreenOffset[2][2]

◆ m_aLayerOffset

float CMapObject::m_aLayerOffset[2]

◆ m_aSpeed

float CMapObject::m_aSpeed[2]

◆ m_pMap

CEditorMap* CMapObject::m_pMap
private

◆ m_UseClipping

bool CMapObject::m_UseClipping

◆ ms_aStandardScreen

float CMapObject::ms_aStandardScreen[2] = {1430 / 2.f, 1050 / 2.f}
staticconstexpr

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