traverse

abstract fun traverse(options: EnumSet<Path.TraversalOption>): Boolean

Takes a step along this path if appropriate. If the path cannot be traversed due to the player being too far from its vertices or already at the end vertex, false will be returned. In all other cases, true will be returned, but an action will not necessarily be performed (based on the given options).

Return

true if this path is currently valid for the player; otherwise false.

Parameters

options

Walking style options.

fun traverse(): Boolean

Takes a step along this path if appropriate. Specifies only TraversalOption.SPACE_ACTIONS.

Return

true if this path is currently valid for the player; otherwise false.

See also

.traverse