Class TileMapNode
- Namespace
- Fantas
- Assembly
- Fantas.dll
Tile Map node.
public class TileMapNode : Node
- Inheritance
-
TileMapNode
- Inherited Members
Constructors
TileMapNode()
Create an empty TileMapNode
public TileMapNode()
TileMapNode(TileSet, int, int)
Create a TileMapNode with the given tile set and of the size rows x columns
public TileMapNode(TileSet tileSet, int columns, int rows)
Parameters
TileMapNode(TileSet, int, int, SizeF)
Create a TileMapNode with the given tile set and of the size rows x columns
public TileMapNode(TileSet tileSet, int columns, int rows, SizeF tileSize)
Parameters
Properties
AnchorPoint
Reference anchor point for drawing and rotation
public PointF AnchorPoint { get; set; }
Property Value
BlendMode
Set the blend operation for the Tile map node
public BlendMode BlendMode { get; set; }
Property Value
Color
Tile map tint Color
public Color Color { get; set; }
Property Value
ColorBlendFactor
Color blend factor (0f-1f)
public float ColorBlendFactor { get; set; }
Property Value
MapSize
Tile Map total size
public SizeF MapSize { get; }
Property Value
NumberOfColumns
Number of columns in the tile map
public int NumberOfColumns { get; set; }
Property Value
NumberOfRows
Number of rows in the tile map
public int NumberOfRows { get; set; }
Property Value
TileSet
Tile set used in this tile map
public TileSet TileSet { get; set; }
Property Value
TileSize
Size of each tile
public SizeF TileSize { get; set; }
Property Value
Methods
Fill(TileGroup)
Fill tile map with the given group
public void Fill(TileGroup tileGroup)
Parameters
tileGroup
TileGroup
GetTileColumnIndex(PointF)
Get tile column index
public int GetTileColumnIndex(PointF position)
Parameters
position
PointF
Returns
GetTileDefinition(int, int)
Get tile definition of given position
public TileDefinition GetTileDefinition(int column, int row)
Parameters
Returns
GetTileGroup(int, int)
Get tile definition of given position
public TileGroup GetTileGroup(int column, int row)
Parameters
Returns
GetTileRowIndex(PointF)
Get tile column index
public int GetTileRowIndex(PointF position)
Parameters
position
PointF
Returns
SetTileGroup(TileGroup, int, int)
Set the tile group for the specific tile location
public void SetTileGroup(TileGroup tileGroup, int column, int row)