|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Navigable
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 |
|---|
boolean isValid(Pathfinder.Node node)
node - the node.
double getCost(Pathfinder.Node n1,
Pathfinder.Node n2)
n1 - the first node.n2 - the second node.
double getDistance(Pathfinder.Node n1,
Pathfinder.Node n2)
n1 - the first node.n2 - the second node.
int createNodeID(Pathfinder.Node node)
node - the node.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||