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

#include <editor_actions.h>

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

Public Member Functions

 CEditorActionEditLayerTilesProp (CEditorMap *pMap, int GroupIndex, int LayerIndex, ETilesProp Prop, int Previous, int Current)
void Undo () override
void Redo () override
void SetSavedLayers (const std::map< int, std::shared_ptr< CLayer > > &SavedLayers)
Public Member Functions inherited from CEditorActionEditLayerPropBase< ETilesProp >
 CEditorActionEditLayerPropBase (CEditorMap *pMap, int GroupIndex, int LayerIndex, ETilesProp Prop, int Previous, int Current)
Public Member Functions inherited from CEditorActionLayerBase
 CEditorActionLayerBase (CEditorMap *pMap, int GroupIndex, int LayerIndex)
Public Member Functions inherited from IEditorAction
 IEditorAction (CEditorMap *pMap)
virtual bool IsEmpty ()
const char * DisplayText () const
Public Member Functions inherited from CMapObject
 CMapObject (CEditorMap *pMap)
 CMapObject (const CMapObject &Other)
virtual ~CMapObject ()=default
virtual void OnAttach (CEditorMap *pMap)
const CEditorEditor () const
CEditorEditor ()
const CEditorMapMap () const
CEditorMapMap ()
const IGraphicsGraphics () const
IGraphicsGraphics ()
const ISoundSound () const
ISoundSound ()
const IStorageStorage () const
IStorageStorage ()
const ITextRenderTextRender () const
ITextRenderTextRender ()

Private Member Functions

void RestoreLayer (int Layer, const std::shared_ptr< CLayerTiles > &pLayerTiles)

Private Attributes

std::map< int, std::shared_ptr< CLayer > > m_SavedLayers

Additional Inherited Members

Public Attributes inherited from CMapObject
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 inherited from CMapObject
static constexpr float ms_aStandardScreen [2] = {1430 / 2.f, 1050 / 2.f}
Protected Attributes inherited from CEditorActionEditLayerPropBase< ETilesProp >
ETilesProp m_Prop
int m_Previous
int m_Current
Protected Attributes inherited from CEditorActionLayerBase
int m_GroupIndex
int m_LayerIndex
std::shared_ptr< CLayerm_pLayer
Protected Attributes inherited from IEditorAction
char m_aDisplayText [256]

Constructor & Destructor Documentation

◆ CEditorActionEditLayerTilesProp()

CEditorActionEditLayerTilesProp::CEditorActionEditLayerTilesProp ( CEditorMap * pMap,
int GroupIndex,
int LayerIndex,
ETilesProp Prop,
int Previous,
int Current )

Member Function Documentation

◆ Redo()

void CEditorActionEditLayerTilesProp::Redo ( )
overridevirtual

Implements IEditorAction.

◆ RestoreLayer()

void CEditorActionEditLayerTilesProp::RestoreLayer ( int Layer,
const std::shared_ptr< CLayerTiles > & pLayerTiles )
private

◆ SetSavedLayers()

void CEditorActionEditLayerTilesProp::SetSavedLayers ( const std::map< int, std::shared_ptr< CLayer > > & SavedLayers)

◆ Undo()

void CEditorActionEditLayerTilesProp::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_SavedLayers

std::map<int, std::shared_ptr<CLayer> > CEditorActionEditLayerTilesProp::m_SavedLayers
private

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