LocalPath

class LocalPath(actions: List<LocalEdge>)

Types

Companion
Link copied to clipboard
object Companion

Functions

containsSpecialNode
Link copied to clipboard
fun containsSpecialNode(): Boolean
draw
Link copied to clipboard
fun draw(g: Graphics)
finalDestination
Link copied to clipboard
fun finalDestination(): Tile
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean
isNotEmpty
Link copied to clipboard
fun isNotEmpty(): Boolean
toString
Link copied to clipboard
open override fun toString(): String
traverse
Link copied to clipboard
fun traverse(): Boolean

Takes one step in the localpath

traverseUntilReached
Link copied to clipboard
fun traverseUntilReached(maxDistance: Double = 0.0, walkUntil: Callable<Boolean> = Callable { false }): Boolean

Keeps walking until destination is reached

Properties

actions
Link copied to clipboard
val actions: List<LocalEdge>
logger
Link copied to clipboard
val logger: Logger
size
Link copied to clipboard
val size: Int