![]() |
DDraceNetwork Documentation
|
#include <layer_tiles.h>
Classes | |
| struct | SCommonPropState |
Public Member Functions | |
| CLayerTiles (CEditorMap *pMap, int w, int h) | |
| CLayerTiles (const CLayerTiles &Other) | |
| ~CLayerTiles () override | |
| virtual CTile | GetTile (int x, int y) const |
| 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 (EShiftDirection Direction) |
| void | MakePalette () const |
| void | Render (bool Tileset=false) override |
| int | ConvertX (float x) const |
| int | ConvertY (float y) const |
| void | Convert (CUIRect Rect, CIntRect *pOut) const |
| void | Snap (CUIRect *pRect) const |
| void | Clamp (CIntRect *pRect) const |
| bool | IsEntitiesLayer () const override |
| virtual bool | IsEmpty () const |
| void | BrushSelecting (CUIRect Rect) override |
| int | BrushGrab (CLayerGroup *pBrush, CUIRect Rect) override |
| void | FillSelection (bool Empty, CLayer *pBrush, CUIRect Rect) override |
| void | FillGameTiles (EGameTileOp Fill) |
| bool | CanFillGameTiles () const |
| void | BrushDraw (CLayer *pBrush, vec2 WorldPos) override |
| void | BrushFlipX () override |
| void | BrushFlipY () override |
| void | BrushRotate (float Amount) override |
| std::shared_ptr< CLayer > | Duplicate () const override |
| const char * | TypeName () const override |
| virtual void | ShowInfo () |
| CUi::EPopupMenuFunctionResult | RenderProperties (CUIRect *pToolbox) override |
| void | ModifyImageIndex (const FIndexModifyFunction &IndexModifyFunction) override |
| void | ModifyEnvelopeIndex (const FIndexModifyFunction &IndexModifyFunction) 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 | |
| CLayer (CEditorMap *pMap, int Type) | |
| CLayer (const CLayer &Other) | |
| virtual void | BrushPlace (CLayer *pBrush, vec2 WorldPos) |
| virtual void | ModifySoundIndex (const FIndexModifyFunction &IndexModifyFunction) |
| 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 () |
Static Public Member Functions | |
| static CUi::EPopupMenuFunctionResult | RenderCommonProperties (SCommonPropState &State, CEditorMap *pEditorMap, CUIRect *pToolbox, std::vector< std::shared_ptr< CLayerTiles > > &vpLayers, std::vector< int > &vLayerIndices) |
| static bool | HasAutomapEffect (ETilesProp Prop) |
Public Attributes | |
| bool | m_HasGame |
| int | m_Image |
| int | m_Width |
| int | m_Height |
| CColor | m_Color |
| int | m_ColorEnv |
| int | m_ColorEnvOffset |
| CTile * | m_pTiles |
| int | m_FillGameTile = -1 |
| bool | m_LiveGameTiles = false |
| int | m_AutoMapperConfig |
| int | m_AutoMapperReference |
| int | m_Seed |
| bool | m_AutoAutoMap |
| bool | m_HasTele |
| bool | m_HasSpeedup |
| bool | m_HasFront |
| bool | m_HasSwitch |
| bool | m_HasTune |
| char | m_aFilename [IO_MAX_PATH_LENGTH] |
| bool | m_KnownTextModeLayer = false |
| EditorTileStateChangeHistory< STileStateChange > | m_TilesHistory |
| Public Attributes inherited from CLayer | |
| int | m_Type |
| char | m_aName [12] = "" |
| int | m_Flags = 0 |
| bool | m_Readonly = false |
| bool | m_Visible = true |
| 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] |
Protected Member Functions | |
| template<typename T> | |
| void | ShiftImpl (T *pTiles, EShiftDirection 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 () |
Friends | |
| class | CAutoMapper |
Additional Inherited Members | |
| Static Public Attributes inherited from CMapObject | |
| static constexpr float | ms_aStandardScreen [2] = {1430 / 2.f, 1050 / 2.f} |
| CLayerTiles::CLayerTiles | ( | CEditorMap * | pMap, |
| int | w, | ||
| int | h ) |
| CLayerTiles::CLayerTiles | ( | const CLayerTiles & | Other | ) |
|
override |
Reimplemented from CLayer.
Reimplemented in CLayerTune.
|
overridevirtual |
Reimplemented from CLayer.
Reimplemented in CLayerTune.
|
inlineprotected |
|
overridevirtual |
Reimplemented from CLayer.
Reimplemented in CLayerTune.
|
inlineprotected |
|
overridevirtual |
Reimplemented from CLayer.
|
overridevirtual |
Reimplemented from CLayer.
Reimplemented in CLayerTune.
| bool CLayerTiles::CanFillGameTiles | ( | ) | const |
| void CLayerTiles::Clamp | ( | CIntRect * | pRect | ) | const |
|
inlinevirtual |
Reimplemented in CLayerSpeedup, CLayerSwitch, CLayerTele, and CLayerTune.
| int CLayerTiles::ConvertX | ( | float | x | ) | const |
| int CLayerTiles::ConvertY | ( | float | y | ) | const |
|
overridevirtual |
Implements CLayer.
Reimplemented in CLayerTune.
| void CLayerTiles::ExtractTiles | ( | int | TilemapItemVersion, |
| const CTile * | pSavedTiles, | ||
| size_t | SavedTilesSize ) const |
| void CLayerTiles::FillGameTiles | ( | EGameTileOp | Fill | ) |
Reimplemented from CLayer.
Reimplemented in CLayerTune.
| void CLayerTiles::FlagModified | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h ) |
|
inlineoverridevirtual |
Reimplemented from CLayer.
|
nodiscardvirtual |
Reimplemented in CLayerGame.
|
static |
|
nodiscardvirtual |
Reimplemented in CLayerFront, CLayerGame, CLayerSpeedup, CLayerSwitch, CLayerTele, and CLayerTune.
|
overridevirtual |
Reimplemented from CLayer.
| void CLayerTiles::MakePalette | ( | ) | const |
|
overridevirtual |
Reimplemented from CLayer.
|
overridevirtual |
Reimplemented from CLayer.
| void CLayerTiles::PrepareForSave | ( | ) |
|
overridevirtual |
Reimplemented from CLayer.
|
static |
|
overridevirtual |
Reimplemented from CLayer.
|
virtual |
Reimplemented in CLayerFront, CLayerSpeedup, CLayerSwitch, CLayerTele, and CLayerTune.
|
virtual |
Reimplemented in CLayerFront, and CLayerGame.
| void CLayerTiles::SetTileIgnoreHistory | ( | int | x, |
| int | y, | ||
| CTile | Tile ) const |
|
virtual |
Reimplemented in CLayerSpeedup, CLayerSwitch, CLayerTele, and CLayerTune.
|
inlineprotected |
|
virtual |
|
protected |
| void CLayerTiles::Snap | ( | CUIRect * | pRect | ) | const |
|
overridevirtual |
Implements CLayer.
Reimplemented in CLayerTune.
|
friend |
| char CLayerTiles::m_aFilename[IO_MAX_PATH_LENGTH] |
| bool CLayerTiles::m_AutoAutoMap |
| int CLayerTiles::m_AutoMapperConfig |
| int CLayerTiles::m_AutoMapperReference |
| CColor CLayerTiles::m_Color |
| int CLayerTiles::m_ColorEnv |
| int CLayerTiles::m_ColorEnvOffset |
| int CLayerTiles::m_FillGameTile = -1 |
| bool CLayerTiles::m_HasFront |
| bool CLayerTiles::m_HasGame |
| bool CLayerTiles::m_HasSpeedup |
| bool CLayerTiles::m_HasSwitch |
| bool CLayerTiles::m_HasTele |
| bool CLayerTiles::m_HasTune |
| int CLayerTiles::m_Height |
| int CLayerTiles::m_Image |
| bool CLayerTiles::m_KnownTextModeLayer = false |
| bool CLayerTiles::m_LiveGameTiles = false |
| CTile* CLayerTiles::m_pTiles |
| int CLayerTiles::m_Seed |
| EditorTileStateChangeHistory<STileStateChange> CLayerTiles::m_TilesHistory |
| int CLayerTiles::m_Width |