| Package | Description |
|---|---|
| com.almasb.fxgl.ai.pathfinding |
| Modifier and Type | Method and Description |
|---|---|
NodeState |
AStarGrid.getNodeState(int x,
int y)
Returns state of the node at a, y.
|
NodeState |
AStarNode.getState() |
static NodeState |
NodeState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeState[] |
NodeState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AStarGrid.setNodeState(int x,
int y,
NodeState state)
Set state of the node at x, y.
|
void |
AStarNode.setState(NodeState state)
Set node's state.
|
void |
AStarGrid.setStateForAllNodes(NodeState state)
Convenience method to set state of all nodes to given state.
|
| Constructor and Description |
|---|
AStarNode(int x,
int y,
NodeState state)
Constructs A* node with x, y values and state.
|
Copyright © 2018. All rights reserved.