public class AStarNode extends java.lang.Object implements java.lang.Comparable<AStarNode>
AStarPathFinder
.Modifier and Type | Field and Description |
---|---|
protected double |
distance
The distance of the node from the start.
|
protected double |
heuristicDistance
The heuristic distance of the node to the goal node.
|
protected AStarNode |
previous
The predecessor of the node.
|
protected int |
x
The x position of the node.
|
protected int |
y
The y position of the node.
|
Constructor and Description |
---|
AStarNode(int x,
int y)
Creates an A* node with a specified x- and y coordinate.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AStarNode o) |
protected double distance
protected int x
protected int y
protected double heuristicDistance
protected AStarNode previous