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

#include <editor_actions.h>

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

Public Types

enum class  EType {
  DELETE , ADD , EDIT , MOVE_UP ,
  MOVE_DOWN
}

Public Member Functions

 CEditorCommandAction (CEditorMap *pMap, EType Type, int *pSelectedCommandIndex, int CommandIndex, const char *pPreviousCommand=nullptr, const char *pCurrentCommand=nullptr)
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 CEditorEditor () const
CEditorEditor ()
const CEditorMapMap () const
CEditorMapMap ()
const IGraphicsGraphics () const
IGraphicsGraphics ()
const ISoundSound () const
ISoundSound ()
const IStorageStorage () const
IStorageStorage ()
const ITextRenderTextRender () const
ITextRenderTextRender ()

Private Attributes

EType m_Type
int * m_pSelectedCommandIndex
int m_CommandIndex
std::string m_PreviousCommand
std::string m_CurrentCommand

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]

Member Enumeration Documentation

◆ EType

enum class CEditorCommandAction::EType
strong
Enumerator
DELETE 
ADD 
EDIT 
MOVE_UP 
MOVE_DOWN 

Constructor & Destructor Documentation

◆ CEditorCommandAction()

CEditorCommandAction::CEditorCommandAction ( CEditorMap * pMap,
EType Type,
int * pSelectedCommandIndex,
int CommandIndex,
const char * pPreviousCommand = nullptr,
const char * pCurrentCommand = nullptr )

Member Function Documentation

◆ Redo()

void CEditorCommandAction::Redo ( )
overridevirtual

Implements IEditorAction.

◆ Undo()

void CEditorCommandAction::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_CommandIndex

int CEditorCommandAction::m_CommandIndex
private

◆ m_CurrentCommand

std::string CEditorCommandAction::m_CurrentCommand
private

◆ m_PreviousCommand

std::string CEditorCommandAction::m_PreviousCommand
private

◆ m_pSelectedCommandIndex

int* CEditorCommandAction::m_pSelectedCommandIndex
private

◆ m_Type

EType CEditorCommandAction::m_Type
private

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