|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A simple interface to allow pathfinders like the A* algorithm to navigate through the environment.
| Method Summary | |
int |
createNodeID(Pathfinder.Node node)
Generate a unique ID for a given node. |
double |
getCost(Pathfinder.Node n1,
Pathfinder.Node n2)
Return the cost to travel from node 1 to node 2. |
double |
getDistance(Pathfinder.Node n1,
Pathfinder.Node n2)
Return the distance between the node 1 and node 2. |
boolean |
isValid(Pathfinder.Node node)
Determines whether the given node is valid. |
| Method Detail |
public boolean isValid(Pathfinder.Node node)
node - the node.
public double getCost(Pathfinder.Node n1,
Pathfinder.Node n2)
n1 - the first node.n2 - the second node.
public double getDistance(Pathfinder.Node n1,
Pathfinder.Node n2)
n1 - the first node.n2 - the second node.
public int createNodeID(Pathfinder.Node node)
node - the node.
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||