isAdjacentTo
Checks whether this location is adjacent to the other location. If includeDiagonal is true, the method will also return true if the locations are diagonal to each other.
Return
true if the locations are adjacent to each other, false otherwise.
Since
1.0.0
Parameters
other
the other location.
includeDiagonal
whether to include diagonal locations.
Checks whether this locatable is adjacent to the other locatable. If includeDiagonal is true, the method will also return true if the locatables are diagonal to each other.
Return
true if the locatables are adjacent to each other, false otherwise.
Since
1.0.0
Parameters
other
the other locatable.
includeDiagonal
whether to include diagonal locatables.