public class GridNode extends AbstractPathfinderNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
walkable
Holds the state of the node, whether its a wall or a walkable area
|
g, h, location, parent| Constructor and Description |
|---|
GridNode(int x,
int y,
int z,
boolean walkable)
Class constructor.
|
GridNode(RectCoordinates location,
boolean walkable)
Class constructor.
|
protected boolean walkable
public GridNode(int x,
int y,
int z,
boolean walkable)
x - the column the node is located in the gridy - the row the node is located in the gridz - the aisle the node is located in the gridwalkable - determines whether the node can be walked throughpublic GridNode(RectCoordinates location, boolean walkable)
location - the index of the node in the gridwalkable - determines whether the node can be walked through