public static class AStarPathUtil.Node extends Object implements Comparable<AStarPathUtil.Node>
| Modifier and Type | Field and Description |
|---|---|
boolean |
closed
Whether or not this node is on the closed list.
|
int |
f
The score assigned to this node.
|
int |
g
The actual cheapest cost of arriving here from the start.
|
int |
h
The heuristic estimate of the cost to the goal from here.
|
int |
id
The node's monotonically-increasing unique identifier.
|
AStarPathUtil.Node |
parent
The node from which we reached this node.
|
int |
x
The node coordinates.
|
int |
y
The node coordinates.
|
| Constructor and Description |
|---|
Node(int x,
int y) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AStarPathUtil.Node o) |
public int x
public int y
public int g
public int h
public int f
public AStarPathUtil.Node parent
public int id
public boolean closed
public int compareTo(AStarPathUtil.Node o)
compareTo in interface Comparable<AStarPathUtil.Node>Copyright © 2015. All rights reserved.