getNeighbours method
Returns a set of the eight neighbours of this tile.
@return neighbour tiles as a set
Implementation
Set<Tile> getNeighbours() {
Set<Tile> neighbours = {};
neighbours.add(getLeft());
neighbours.add(getAboveLeft());
neighbours.add(getAbove());
neighbours.add(getAboveRight());
neighbours.add(getRight());
neighbours.add(getBelowRight());
neighbours.add(getBelow());
neighbours.add(getBelowLeft());
return neighbours;
}