public class GridNode extends Node
Modifier and Type | Field and Description |
---|---|
private static float |
grid_space |
MULTIPLIER, x, y
Constructor and Description |
---|
GridNode(float x,
float y,
float grid_space) |
Modifier and Type | Method and Description |
---|---|
protected float |
calculateG(Node neighbor)
Calculates the distance to a neighbor node.
|
protected float |
calculateH(Node neighbor)
Calculates the distance to the goal node.
|
addNeighbor, getF_Score, getG_Score, getNeighbors, getPredecessor, neighbors, removeNeighbor, setG_Score, setH_Score, setPredecessor
protected float calculateG(Node neighbor)
Node
calculateG
in class Node
protected float calculateH(Node neighbor)
Node
calculateH
in class Node