DDraceNetwork Docs
CLayerSpeedup Class Reference

#include <layer_speedup.h>

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

Public Member Functions

 CLayerSpeedup (CEditor *pEditor, int w, int h)
 
 CLayerSpeedup (const CLayerSpeedup &Other)
 
 ~CLayerSpeedup ()
 
void Resize (int NewW, int NewH) override
 
void Shift (int Direction) override
 
bool IsEmpty (const std::shared_ptr< CLayerTiles > &pLayer) override
 
void BrushDraw (std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
 
void BrushFlipX () override
 
void BrushFlipY () override
 
void BrushRotate (float Amount) override
 
void FillSelection (bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect) override
 
void ClearHistory () override
 
std::shared_ptr< CLayerDuplicate () const override
 
const char * TypeName () const override
 
- Public Member Functions inherited from CLayerTiles
 CLayerTiles (CEditor *pEditor, int w, int h)
 
 CLayerTiles (const CLayerTiles &Other)
 
 ~CLayerTiles ()
 
virtual CTile GetTile (int x, int y)
 
virtual void SetTile (int x, int y, CTile Tile)
 
void SetTileIgnoreHistory (int x, int y, CTile Tile) const
 
virtual void Resize (int NewW, int NewH)
 
virtual void Shift (int Direction)
 
void MakePalette () const
 
void Render (bool Tileset=false) override
 
int ConvertX (float x) const
 
int ConvertY (float y) const
 
void Convert (CUIRect Rect, RECTi *pOut) const
 
void Snap (CUIRect *pRect) const
 
void Clamp (RECTi *pRect) const
 
virtual bool IsEntitiesLayer () const override
 
virtual bool IsEmpty (const std::shared_ptr< CLayerTiles > &pLayer)
 
void BrushSelecting (CUIRect Rect) override
 
int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect) override
 
void FillSelection (bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect) override
 
void FillGameTiles (EGameTileOp Fill)
 
bool CanFillGameTiles () const
 
void BrushDraw (std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
 
void BrushFlipX () override
 
void BrushFlipY () override
 
void BrushRotate (float Amount) override
 
std::shared_ptr< CLayerDuplicate () const override
 
const char * TypeName () const override
 
virtual void ShowInfo ()
 
CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox) override
 
void ModifyImageIndex (FIndexModifyFunction pfnFunc) override
 
void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc) override
 
void PrepareForSave ()
 
void ExtractTiles (int TilemapItemVersion, const CTile *pSavedTiles, size_t SavedTilesSize) const
 
void GetSize (float *pWidth, float *pHeight) override
 
void FlagModified (int x, int y, int w, int h)
 
virtual void ClearHistory ()
 
- Public Member Functions inherited from CLayer
class IGraphicsGraphics ()
 
class ITextRenderTextRender ()
 
 CLayer (CEditor *pEditor)
 
 CLayer (const CLayer &Other)
 
virtual ~CLayer ()
 
virtual void BrushSelecting (CUIRect Rect)
 
virtual int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect)
 
virtual void FillSelection (bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect)
 
virtual void BrushDraw (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushPlace (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushFlipX ()
 
virtual void BrushFlipY ()
 
virtual void BrushRotate (float Amount)
 
virtual bool IsEntitiesLayer () const
 
virtual void Render (bool Tileset=false)
 
virtual CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox)
 
virtual void ModifyImageIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifySoundIndex (FIndexModifyFunction pfnFunc)
 
virtual std::shared_ptr< CLayerDuplicate () const =0
 
virtual const char * TypeName () const =0
 
virtual void GetSize (float *pWidth, float *pHeight)
 

Public Attributes

CSpeedupTilem_pSpeedupTile
 
int m_SpeedupForce
 
int m_SpeedupMaxSpeed
 
int m_SpeedupAngle
 
EditorTileStateChangeHistory< SSpeedupTileStateChangem_History
 
- Public Attributes inherited from CLayerTiles
int m_Game
 
int m_Image
 
int m_Width
 
int m_Height
 
CColor m_Color
 
int m_ColorEnv
 
int m_ColorEnvOffset
 
CTilem_pTiles
 
int m_AutoMapperConfig
 
int m_Seed
 
bool m_AutoAutoMap
 
int m_Tele
 
int m_Speedup
 
int m_Front
 
int m_Switch
 
int m_Tune
 
char m_aFileName [IO_MAX_PATH_LENGTH]
 
EditorTileStateChangeHistory< STileStateChangem_TilesHistory
 
- Public Attributes inherited from CLayer
class CEditorm_pEditor
 
char m_aName [12]
 
int m_Type
 
int m_Flags
 
bool m_Readonly
 
bool m_Visible
 

Private Member Functions

void RecordStateChange (int x, int y, SSpeedupTileStateChange::SData Previous, SSpeedupTileStateChange::SData Current)
 

Additional Inherited Members

- Static Public Member Functions inherited from CLayerTiles
static CUi::EPopupMenuFunctionResult RenderCommonProperties (SCommonPropState &State, CEditor *pEditor, CUIRect *pToolbox, std::vector< std::shared_ptr< CLayerTiles > > &vpLayers, std::vector< int > &vLayerIndices)
 
static bool HasAutomapEffect (ETilesProp Prop)
 
- Protected Member Functions inherited from CLayerTiles
template<typename T >
void ShiftImpl (T *pTiles, int Direction, int ShiftBy)
 
template<typename T >
void BrushFlipXImpl (T *pTiles)
 
template<typename T >
void BrushFlipYImpl (T *pTiles)
 
void RecordStateChange (int x, int y, CTile Previous, CTile Tile)
 
void ShowPreventUnusedTilesWarning ()
 

Constructor & Destructor Documentation

◆ CLayerSpeedup() [1/2]

CLayerSpeedup::CLayerSpeedup ( CEditor pEditor,
int  w,
int  h 
)

◆ CLayerSpeedup() [2/2]

CLayerSpeedup::CLayerSpeedup ( const CLayerSpeedup Other)

◆ ~CLayerSpeedup()

CLayerSpeedup::~CLayerSpeedup ( )

Member Function Documentation

◆ BrushDraw()

void CLayerSpeedup::BrushDraw ( std::shared_ptr< CLayer pBrush,
vec2  WorldPos 
)
overridevirtual

Reimplemented from CLayer.

◆ BrushFlipX()

void CLayerSpeedup::BrushFlipX ( )
overridevirtual

Reimplemented from CLayer.

◆ BrushFlipY()

void CLayerSpeedup::BrushFlipY ( )
overridevirtual

Reimplemented from CLayer.

◆ BrushRotate()

void CLayerSpeedup::BrushRotate ( float  Amount)
overridevirtual

Reimplemented from CLayer.

◆ ClearHistory()

void CLayerSpeedup::ClearHistory ( )
inlineoverridevirtual

Reimplemented from CLayerTiles.

◆ Duplicate()

std::shared_ptr< CLayer > CLayerSpeedup::Duplicate ( ) const
overridevirtual

Implements CLayer.

◆ FillSelection()

void CLayerSpeedup::FillSelection ( bool  Empty,
std::shared_ptr< CLayer pBrush,
CUIRect  Rect 
)
overridevirtual

Reimplemented from CLayer.

◆ IsEmpty()

bool CLayerSpeedup::IsEmpty ( const std::shared_ptr< CLayerTiles > &  pLayer)
overridevirtual

Reimplemented from CLayerTiles.

◆ RecordStateChange()

void CLayerSpeedup::RecordStateChange ( int  x,
int  y,
SSpeedupTileStateChange::SData  Previous,
SSpeedupTileStateChange::SData  Current 
)
private

◆ Resize()

void CLayerSpeedup::Resize ( int  NewW,
int  NewH 
)
overridevirtual

Reimplemented from CLayerTiles.

◆ Shift()

void CLayerSpeedup::Shift ( int  Direction)
overridevirtual

Reimplemented from CLayerTiles.

◆ TypeName()

const char * CLayerSpeedup::TypeName ( ) const
overridevirtual

Implements CLayer.

Member Data Documentation

◆ m_History

◆ m_pSpeedupTile

CSpeedupTile* CLayerSpeedup::m_pSpeedupTile

◆ m_SpeedupAngle

int CLayerSpeedup::m_SpeedupAngle

◆ m_SpeedupForce

int CLayerSpeedup::m_SpeedupForce

◆ m_SpeedupMaxSpeed

int CLayerSpeedup::m_SpeedupMaxSpeed

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