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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfindPath(Navigatable<NodeId> graph, NodeId start, NodeId goal)Finds a path in a navigatable environment.(package private) floatgetHeuristicDistance(Navigatable<NodeId> graph, NodeId a, NodeId b)
- 
Field Details- 
searchMode
- 
dynamicHeuristicDistanceWhen 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- 
AStarpublic AStar()
 
- 
- 
Method Details