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

#include <editor_actions.h>

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

Public Member Functions

 CEditorActionEditSoundSourceShape (CEditorMap *pMap, int GroupIndex, int LayerIndex, int SourceIndex, int Value)
void Undo () override
void Redo () override
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 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 Member Functions

void Save ()

Private Attributes

int m_SourceIndex
int m_CurrentValue
std::vector< int > m_vOriginalValues
CSoundShape m_SavedShape

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 CEditorActionLayerBase
int m_GroupIndex
int m_LayerIndex
std::shared_ptr< CLayer > m_pLayer
Protected Attributes inherited from IEditorAction
char m_aDisplayText [256]

Constructor & Destructor Documentation

◆ CEditorActionEditSoundSourceShape()

CEditorActionEditSoundSourceShape::CEditorActionEditSoundSourceShape ( CEditorMap * pMap,
int GroupIndex,
int LayerIndex,
int SourceIndex,
int Value )

Member Function Documentation

◆ Redo()

void CEditorActionEditSoundSourceShape::Redo ( )
overridevirtual

Implements IEditorAction.

◆ Save()

void CEditorActionEditSoundSourceShape::Save ( )
private

◆ Undo()

void CEditorActionEditSoundSourceShape::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_CurrentValue

int CEditorActionEditSoundSourceShape::m_CurrentValue
private

◆ m_SavedShape

CSoundShape CEditorActionEditSoundSourceShape::m_SavedShape
private

◆ m_SourceIndex

int CEditorActionEditSoundSourceShape::m_SourceIndex
private

◆ m_vOriginalValues

std::vector<int> CEditorActionEditSoundSourceShape::m_vOriginalValues
private

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