PathTile

interface PathTile<T : PathTile<T>>(source)

Represents a path tile with generic type T.

Parameters

T

the type of objects that can be used for movement cost and heuristic calculations.

Functions

Link copied to clipboard
abstract infix fun distanceTo(to: T): Int

Calculates the heuristic to another tile.

Link copied to clipboard
abstract fun isWalkable(): Boolean

Checks if the tile is walkable.

Link copied to clipboard
abstract infix fun moveCostTo(to: T): Double

Calculates the movement cost to another tile.