| Package | Description |
|---|---|
| com.almasb.fxgl.ai.pathfinding | |
| com.almasb.fxgl.ai.pathfinding.maze |
| Modifier and Type | Method and Description |
|---|---|
AStarNode[][] |
AStarGrid.getGrid() |
AStarNode |
AStarGrid.getNode(int x,
int y)
Returns a node at x, y.
|
AStarNode |
AStarNode.getParent() |
AStarNode |
AStarGrid.getRandomNode() |
| Modifier and Type | Method and Description |
|---|---|
List<AStarNode> |
AStarGrid.getNodes() |
List<AStarNode> |
AStarLogic.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.
|
List<AStarNode> |
AStarGrid.getPath(int startX,
int startY,
int targetX,
int targetY)
Returns a list of A* nodes from start to target.
|
Optional<AStarNode> |
AStarGrid.getRandomNode(Predicate<AStarNode> predicate) |
protected List<AStarNode> |
AStarLogic.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes) |
| Modifier and Type | Method and Description |
|---|---|
List<AStarNode> |
AStarLogic.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.
|
List<AStarNode> |
AStarLogic.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.
|
List<AStarNode> |
AStarLogic.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> |
AStarLogic.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes) |
protected List<AStarNode> |
AStarLogic.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes) |
protected List<AStarNode> |
AStarLogic.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes) |
void |
AStarNode.setParent(AStarNode parent)
Set node's parent.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<AStarNode> |
AStarGrid.getRandomNode(Predicate<AStarNode> predicate) |
| Modifier and Type | Method and Description |
|---|---|
protected List<AStarNode> |
MazeSolver.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes)
Adaptation from vanilla A* to cater for walls.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<AStarNode> |
MazeSolver.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes)
Adaptation from vanilla A* to cater for walls.
|
protected List<AStarNode> |
MazeSolver.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes)
Adaptation from vanilla A* to cater for walls.
|
protected List<AStarNode> |
MazeSolver.getValidNeighbors(AStarNode node,
AStarNode[][] grid,
AStarNode... busyNodes)
Adaptation from vanilla A* to cater for walls.
|
Copyright © 2018. All rights reserved.