T - the type implementing NavigationNodepublic interface NavigationGraph<T extends NavigationNode>
NavigationNode.| Modifier and Type | Method and Description |
|---|---|
float |
getMovementCost(T node1,
T node2,
PathFinderOptions opt)
Determines the movement cost for moving from node1 to node2, with the given options
|
java.util.List<T> |
getNeighbors(T node) |
java.util.List<T> |
getNeighbors(T node,
PathFinderOptions opt) |
boolean |
isWalkable(T node) |
boolean |
lineOfSight(NavigationNode from,
NavigationNode to) |
java.util.List<T> getNeighbors(T node)
node - the node to find the neighbors forjava.util.List<T> getNeighbors(T node, PathFinderOptions opt)
node - the node to find the neighbors forfloat getMovementCost(T node1, T node2, PathFinderOptions opt)
boolean isWalkable(T node)
boolean lineOfSight(NavigationNode from, NavigationNode to)