Package com.ardorcraft.pathfinding
Class ConstrainedAStar
java.lang.Object
com.ardorcraft.pathfinding.ConstrainedAStar
AStar pathfinding with pluggable cost calculator (since that is game specific).
Typical usage:
ConstrainedAStar pathFinder = new ConstrainedAStar(blockWorld, 40); ... PathResult pathResult = pathFinder.findPath(source.x, source.y, source.z, target.x, target.y, target.z);
-
Constructor Summary
ConstructorDescriptionConstrainedAStar
(BlockProvider map, int maxSearchDistance) ConstrainedAStar
(BlockProvider map, int maxSearchDistance, AStarHeuristic heuristic, MoveCalculator moveCalculator) -
Method Summary
-
Constructor Details
-
ConstrainedAStar
-
ConstrainedAStar
public ConstrainedAStar(BlockProvider map, int maxSearchDistance, AStarHeuristic heuristic, MoveCalculator moveCalculator)
-
-
Method Details
-
findPath
-