Function floodCoords

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

Prototype

auto floodCoords(alias pred, T)(
  T grid,
  RowCol origin,
  Diagonals diags = Diagonals.no
)
if (is(typeof(pred(grid.tileAt(RowCol(0, 0)))) : bool));

Authors

Copyright

License