public class AStarLogic extends Object
| Constructor and Description |
|---|
AStarLogic() |
| Modifier and Type | Method and Description |
|---|---|
List<AStarNode> |
getPath(AStarNode[][] grid,
AStarNode start,
AStarNode target,
AStarNode... busyNodes)
Since the equality check is based on references,
start and target must be elements of the array.
|
protected List<AStarNode> |
getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes) |
public final List<AStarNode> getPath(AStarNode[][] grid, AStarNode start, AStarNode target, AStarNode... busyNodes)
grid - the grid of nodesstart - starting nodetarget - target nodebusyNodes - busy "unwalkable" nodesCopyright © 2018. All rights reserved.