getShortestPath
fun getShortestPath(destination: TileInfo, avoidDamagingTerrain: Boolean = false): List<TileInfo>
Content copied to clipboard
Does not consider if the destination tile can actually be entered, use canMoveTo for that. Returns an empty list if there's no way to get to the destination.
Sources
jvm source
Link copied to clipboard