getTile method
- WorldState state
Implementation
BoardTile? getTile(WorldState state) {
final table = state.getTableOrDefault(position.table);
final cell = table.getCell(position.position);
return cell.tiles.elementAtOrNull(index);
}
BoardTile? getTile(WorldState state) {
final table = state.getTableOrDefault(position.table);
final cell = table.getCell(position.position);
return cell.tiles.elementAtOrNull(index);
}