OldLocalPath

class OldLocalPath : Path

LocalPath

Types

Companion
Link copied to clipboard
object Companion
Graph
Link copied to clipboard
class Graph(flags: Array<IntArray>, offX: Int, offY: Int)
Node
Link copied to clipboard
class Node(x: Int, y: Int, flag: Int)

Functions

end
Link copied to clipboard
open override fun end(): Tile

Gets the end tile of this path.

next
Link copied to clipboard
open operator override fun next(): Tile

Gets the next immediately available vertex in this path.

start
Link copied to clipboard
open override fun start(): Tile

Gets the start tile of this path.

traverse
Link copied to clipboard
fun traverse(): Boolean

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

open override 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).

valid
Link copied to clipboard
open override fun valid(): Boolean

Properties

tilePath
Link copied to clipboard
var tilePath: TilePath? = null