|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.monsters.AStarSearch.Node
A node in the search graph.
Field Summary | |
double |
cost_
|
int |
depth_
|
double |
f_
|
double |
heuristic_
|
Point |
loc_
|
AStarSearch.Node |
parent_
|
int |
px_
|
int |
py_
|
Commandable |
target_
|
int |
x_
|
int |
y_
|
Constructor Summary | |
AStarSearch.Node(int nodex,
int nodey)
Constructs a new Node for the specified location. |
Method Summary | |
void |
clear()
Clears all the fields back to their defaults. |
void |
computeCost()
Looks in the map to see what the actual base cost for this node is. |
void |
computeHeuristic()
Computes the estimated distance to the goal node. |
java.lang.String |
toString()
Prints debugging string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int x_
public int y_
public Point loc_
public double cost_
public double heuristic_
public double f_
public AStarSearch.Node parent_
public Commandable target_
public int px_
public int py_
public int depth_
Constructor Detail |
public AStarSearch.Node(int nodex, int nodey)
Method Detail |
public void clear()
public java.lang.String toString()
public void computeHeuristic()
public void computeCost()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |