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, setPredecessorprotected float calculateG(Node neighbor)
NodecalculateG in class Nodeprotected float calculateH(Node neighbor)
NodecalculateH in class Node