canBeAccessedFrom

open override fun canBeAccessedFrom(other: Cell): Boolean(source)

Whether this cell can be accessed from the given location. This is used to determine whether a path can be constructed from the given location to this cell. If this cell or the other cell is not accessible, this method returns false. Depending on the underlying implementation, if the other cell is more than one cell away from this cell, this method should return false as it only checks for direct accessibility.

Return

true if this cell can be accessed from the given location, false otherwise

Throws

if the other cell is not on the same map as this cell