Class AStar<NodeId>
java.lang.Object
eu.iv4xr.framework.extensions.pathfinding.AStar<NodeId>
- All Implemented Interfaces:
Pathfinder<NodeId>
A* pathfinding algorithm
- Author:
- Naraenda
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionWhen this is set, this function will be use to calculate the heuristic distance between two nodes, rather than using the default heuristic-method supplied by underlying navigation graph. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindPath(Navigatable<NodeId> graph, NodeId start, NodeId goal)
Finds a path in a navigatable environment.(package private) float
getHeuristicDistance(Navigatable<NodeId> graph, NodeId a, NodeId b)
-
Field Details
-
searchMode
-
dynamicHeuristicDistance
When this is set, this function will be use to calculate the heuristic distance between two nodes, rather than using the default heuristic-method supplied by underlying navigation graph.
-
-
Constructor Details
-
AStar
public AStar()
-
-
Method Details