dtiled.algorithm

Provides various useful operations on a tile grid.

Members

Functions

enclosedCoords
auto enclosedCoords(T grid, RowCol origin, Diagonals diags = Diagonals.no)

Same as enclosedTiles, but return coords instead of tiles

enclosedTiles
auto enclosedTiles(T grid, RowCol origin, Diagonals diags = Diagonals.no)

Find an area of tiles enclosed by 'walls'.

floodCoords
auto floodCoords(T grid, RowCol origin, Diagonals diags = Diagonals.no)

Same as floodTiles, but return coordinates instead of the tiles at those coordinates.

floodTiles
auto floodTiles(T grid, RowCol origin, Diagonals diags = Diagonals.no)

Returns a range that iterates through tiles based on a flood filling algorithm.

Meta