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

#include <editor_actions.h>

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

Public Types

enum class  EEditType { VALUE , CURVE_TYPE }

Public Member Functions

 CEditorActionEnvelopeEditPoint (CEditorMap *pMap, int EnvelopeIndex, int PointIndex, int Channel, EEditType EditType, int Previous, int Current)
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 Member Functions

void Apply (int Value)

Private Attributes

int m_EnvelopeIndex
int m_PointIndex
int m_Channel
EEditType m_EditType
int m_Previous
int m_Current

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

◆ EEditType

Enumerator
VALUE 
CURVE_TYPE 

Constructor & Destructor Documentation

◆ CEditorActionEnvelopeEditPoint()

CEditorActionEnvelopeEditPoint::CEditorActionEnvelopeEditPoint ( CEditorMap * pMap,
int EnvelopeIndex,
int PointIndex,
int Channel,
EEditType EditType,
int Previous,
int Current )

Member Function Documentation

◆ Apply()

void CEditorActionEnvelopeEditPoint::Apply ( int Value)
private

◆ Redo()

void CEditorActionEnvelopeEditPoint::Redo ( )
overridevirtual

Implements IEditorAction.

◆ Undo()

void CEditorActionEnvelopeEditPoint::Undo ( )
overridevirtual

Implements IEditorAction.

Member Data Documentation

◆ m_Channel

int CEditorActionEnvelopeEditPoint::m_Channel
private

◆ m_Current

int CEditorActionEnvelopeEditPoint::m_Current
private

◆ m_EditType

EEditType CEditorActionEnvelopeEditPoint::m_EditType
private

◆ m_EnvelopeIndex

int CEditorActionEnvelopeEditPoint::m_EnvelopeIndex
private

◆ m_PointIndex

int CEditorActionEnvelopeEditPoint::m_PointIndex
private

◆ m_Previous

int CEditorActionEnvelopeEditPoint::m_Previous
private

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