public class AStar
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.PriorityQueue<Node> |
closedList |
static java.util.PriorityQueue<Node> |
openList |
java.util.HashMap<java.lang.Integer,java.util.ArrayList<Node>> |
pathCache |
PathFinder |
pathfinder |
boolean[][] |
visited |
Constructor and Description |
---|
AStar(PathFinder pathfinder) |
Modifier and Type | Method and Description |
---|---|
void |
emptyCache() |
java.util.ArrayList<Node> |
findPath(Node start,
Node goal) |
java.util.ArrayList<Node> |
getPath(Node start,
Node goal) |
void |
printPath(int pathId,
java.util.ArrayList<Node> nodes) |
public static java.util.PriorityQueue<Node> closedList
public static java.util.PriorityQueue<Node> openList
public java.util.HashMap<java.lang.Integer,java.util.ArrayList<Node>> pathCache
public PathFinder pathfinder
public boolean[][] visited
public AStar(PathFinder pathfinder)