public class GraphNode extends AbstractPathfinderNode
| Modifier and Type | Field and Description |
|---|---|
protected int |
index
Index of the node
|
g, h, location, parent| Constructor and Description |
|---|
GraphNode(int x,
int y,
int z,
int index)
Class constructor taking in x, y, and z coordinates that
set the node's location.
|
GraphNode(RectCoordinates location,
int index)
Class constructor taking in a RectCoordinates object
that sets the node's location.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Access method to retrieve the node's index.
|
compareTo, getG, getH, getLocation, getParent, setG, setH, setParent, toStringpublic GraphNode(int x,
int y,
int z,
int index)
x - X value of the nodes locationy - Y value of the nodes locationz - Z value of the nodes locationindex - index of the nodepublic GraphNode(RectCoordinates location, int index)
location - Location of the nodeindex - index of the node