getChilds method

List<Tile> getChilds()

Returns the childs of this tile. The first two items are the upper row from left to right, the next two items are the lower row.

Implementation

List<Tile> getChilds() {
  int x = tileX * 2;
  int y = tileY * 2;
  List<Tile> childs = [];
  childs.add(Tile(x, y, zoomLevel + 1, indoorLevel));
  childs.add(Tile(x + 1, y, zoomLevel + 1, indoorLevel));
  childs.add(Tile(x, y + 1, zoomLevel + 1, indoorLevel));
  childs.add(Tile(x + 1, y + 1, zoomLevel + 1, indoorLevel));
  return childs;
}