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

#include <editor_actions.h>

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

Public Member Functions

 CEditorBrushDrawAction (CEditorMap *pMap, int Group)
void Undo () override
void Redo () override
bool IsEmpty () override
Public Member Functions inherited from IEditorAction
 IEditorAction (CEditorMap *pMap)
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 Apply (bool Undo)
void SetInfos ()

Private Attributes

int m_Group
std::vector< std::pair< int, EditorTileStateChangeHistory< STileStateChange > > > m_vTileChanges
EditorTileStateChangeHistory< STeleTileStateChangem_TeleTileChanges
EditorTileStateChangeHistory< SSpeedupTileStateChangem_SpeedupTileChanges
EditorTileStateChangeHistory< SSwitchTileStateChangem_SwitchTileChanges
EditorTileStateChangeHistory< STuneTileStateChangem_TuneTileChanges
int m_TotalTilesDrawn
int m_TotalLayers

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 IEditorAction
char m_aDisplayText [256]

Constructor & Destructor Documentation

◆ CEditorBrushDrawAction()

CEditorBrushDrawAction::CEditorBrushDrawAction ( CEditorMap * pMap,
int Group )

Member Function Documentation

◆ Apply()

void CEditorBrushDrawAction::Apply ( bool Undo)
private

◆ IsEmpty()

bool CEditorBrushDrawAction::IsEmpty ( )
overridevirtual

Reimplemented from IEditorAction.

◆ Redo()

void CEditorBrushDrawAction::Redo ( )
overridevirtual

Implements IEditorAction.

◆ SetInfos()

void CEditorBrushDrawAction::SetInfos ( )
private

◆ Undo()

void CEditorBrushDrawAction::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_Group

int CEditorBrushDrawAction::m_Group
private

◆ m_SpeedupTileChanges

EditorTileStateChangeHistory<SSpeedupTileStateChange> CEditorBrushDrawAction::m_SpeedupTileChanges
private

◆ m_SwitchTileChanges

EditorTileStateChangeHistory<SSwitchTileStateChange> CEditorBrushDrawAction::m_SwitchTileChanges
private

◆ m_TeleTileChanges

EditorTileStateChangeHistory<STeleTileStateChange> CEditorBrushDrawAction::m_TeleTileChanges
private

◆ m_TotalLayers

int CEditorBrushDrawAction::m_TotalLayers
private

◆ m_TotalTilesDrawn

int CEditorBrushDrawAction::m_TotalTilesDrawn
private

◆ m_TuneTileChanges

EditorTileStateChangeHistory<STuneTileStateChange> CEditorBrushDrawAction::m_TuneTileChanges
private

◆ m_vTileChanges

std::vector<std::pair<int, EditorTileStateChangeHistory<STileStateChange> > > CEditorBrushDrawAction::m_vTileChanges
private

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