getCellAtOrNull

open override fun getCellAtOrNull(location: Location): Cell?(source)

Tries to retrieve a cell at the given location. If there is no cell at the location, for example since the location is out of bounds, null is returned. However, as long as the location is within the bounds of the map, this method should never return null.

Return

the cell at the location, or null if there is no cell at the location

Parameters

location

the location to retrieve the cell from