moveCostTo

abstract infix fun moveCostTo(to: T): Double(source)

Calculates the movement cost to another tile.

This method is used by the pathfinding algorithm to determine the cost of moving from this tile to another tile.

Return

the cost of moving to the specified tile.

Parameters

to

the tile to move to.