Table of Contents

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

tileSet TileSet
columns int
rows int

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

tileSet TileSet
columns int
rows int
tileSize SizeF

Properties

AnchorPoint

Reference anchor point for drawing and rotation

public PointF AnchorPoint { get; set; }

Property Value

PointF

BlendMode

Set the blend operation for the Tile map node

public BlendMode BlendMode { get; set; }

Property Value

BlendMode

Color

Tile map tint Color

public Color Color { get; set; }

Property Value

Color

ColorBlendFactor

Color blend factor (0f-1f)

public float ColorBlendFactor { get; set; }

Property Value

float

MapSize

Tile Map total size

public SizeF MapSize { get; }

Property Value

SizeF

NumberOfColumns

Number of columns in the tile map

public int NumberOfColumns { get; set; }

Property Value

int

NumberOfRows

Number of rows in the tile map

public int NumberOfRows { get; set; }

Property Value

int

TileSet

Tile set used in this tile map

public TileSet TileSet { get; set; }

Property Value

TileSet

TileSize

Size of each tile

public SizeF TileSize { get; set; }

Property Value

SizeF

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

int

GetTileDefinition(int, int)

Get tile definition of given position

public TileDefinition GetTileDefinition(int column, int row)

Parameters

column int
row int

Returns

TileDefinition

GetTileGroup(int, int)

Get tile definition of given position

public TileGroup GetTileGroup(int column, int row)

Parameters

column int
row int

Returns

TileGroup

GetTileRowIndex(PointF)

Get tile column index

public int GetTileRowIndex(PointF position)

Parameters

position PointF

Returns

int

SetTileGroup(TileGroup, int, int)

Set the tile group for the specific tile location

public void SetTileGroup(TileGroup tileGroup, int column, int row)

Parameters

tileGroup TileGroup
column int
row int