|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.AStarPathUtil.Node
public static class AStarPathUtil.Node
A class that represents a single traversable node in the tile array along with its current A*-specific search information.
| Field Summary | |
|---|---|
protected static int |
_nextid
The next unique node id. |
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 Summary | |
|---|---|
AStarPathUtil.Node(int x,
int y)
|
|
| Method Summary | |
|---|---|
int |
compareTo(AStarPathUtil.Node o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
protected static int _nextid
| Constructor Detail |
|---|
public AStarPathUtil.Node(int x,
int y)
| Method Detail |
|---|
public int compareTo(AStarPathUtil.Node o)
compareTo in interface Comparable<AStarPathUtil.Node>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||