Package de.bsommerfeld.pathetic.api.pathing.heuristic


package de.bsommerfeld.pathetic.api.pathing.heuristic
Heuristic estimation for the A* search.

IHeuristicStrategy computes the H-cost of a node from a HeuristicContext and the base transition cost between two positions. HeuristicStrategies exposes the bundled implementations: LINEAR (sqrt-based, near-optimal in practice) and SQUARED (faster, but its overestimation grows with distance, so paths can be suboptimal at range). HeuristicWeights weights the composite's components (Manhattan, octile, perpendicular deviation, height difference).