getRight method

Tile getRight()

Returns the tile to the right of this tile.

@return tile to the right

Implementation

Tile getRight() {
  int x = tileX + 1;
  if (x > getMaxTileNumber(this.zoomLevel)) {
    x = 0;
  }
  return new Tile(x, this.tileY, this.zoomLevel, this.indoorLevel);
}