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

#include <editor_actions.h>

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

Public Member Functions

 CEditorActionBulk (CEditorMap *pMap, const std::vector< std::shared_ptr< IEditorAction > > &vpActions, const char *pDisplay=nullptr, bool Reverse=false)
void Undo () override
void Redo () override
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 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 ()

Private Attributes

std::vector< std::shared_ptr< IEditorAction > > m_vpActions
std::string m_Display
bool m_Reverse

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

◆ CEditorActionBulk()

CEditorActionBulk::CEditorActionBulk ( CEditorMap * pMap,
const std::vector< std::shared_ptr< IEditorAction > > & vpActions,
const char * pDisplay = nullptr,
bool Reverse = false )

Member Function Documentation

◆ Redo()

void CEditorActionBulk::Redo ( )
overridevirtual

Implements IEditorAction.

◆ Undo()

void CEditorActionBulk::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_Display

std::string CEditorActionBulk::m_Display
private

◆ m_Reverse

bool CEditorActionBulk::m_Reverse
private

◆ m_vpActions

std::vector<std::shared_ptr<IEditorAction> > CEditorActionBulk::m_vpActions
private

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