CellTravelCostSupplier

A supplier that provides the cost of traveling between two cells in a juxtaposition. This will not calculate the cost of a total path, but only the cost of traveling between two cells. The cost is represented as an integer, where a higher value means a higher cost. The cost should be positive and non-negative.

Since

1.0.0

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
abstract val maximumCost: Double

The maximum cost of traveling between two cells in a juxtaposition.

Link copied to clipboard
abstract val minimumCost: Double

The minimum cost of traveling between two cells in a juxtaposition.

Functions

Link copied to clipboard
open operator fun invoke(start: Locatable, end: Locatable): Double

Calculates the cost of traveling between two locatable objects. The cost should be positive and non-negative. Note: If at least on of the locatable objects is a de.jvstvshd.vyreka.core.Movable, only the current location will be considered.

abstract operator fun invoke(start: Location, end: Location): Double

Calculates the cost of traveling between two locations. The cost should be positive and non-negative.