public class GridCell extends java.lang.Object implements NavigationGridGraphNode
| Constructor and Description |
|---|
GridCell() |
GridCell(int column,
int row) |
GridCell(int column,
int row,
boolean isWalkable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getClosedOnJob() |
float |
getF() |
float |
getG() |
float |
getH()
Gets the computed value of the heuristic used to get from this point to the goal node.
|
int |
getIndex() |
int |
getOpenedOnJob() |
NavigationNode |
getParent() |
int |
getX() |
int |
getY() |
boolean |
isWalkable() |
void |
setClosedOnJob(int closedOnJob) |
void |
setF(float f) |
void |
setG(float g) |
void |
setH(float h)
Sets the computed value of the heuristic used to get from this point to the goal node.
|
void |
setIndex(int index) |
void |
setOpenedOnJob(int openedOnJob) |
void |
setParent(NavigationNode parent)
The Node from which this node is reachable
|
void |
setWalkable(boolean isWalkable) |
void |
setX(int x) |
void |
setY(int y) |
java.lang.String |
toString() |
public GridCell()
public GridCell(int column,
int row)
public GridCell(int column,
int row,
boolean isWalkable)
public boolean isWalkable()
isWalkable in interface NavigationNodepublic void setWalkable(boolean isWalkable)
setWalkable in interface NavigationNodepublic float getF()
getF in interface NavigationNodepublic void setF(float f)
setF in interface NavigationNodepublic float getG()
getG in interface NavigationNodepublic void setG(float g)
setG in interface NavigationNodepublic float getH()
NavigationNodePathFinderOptions.heuristic used to navigate the gridgetH in interface NavigationNodepublic void setH(float h)
NavigationNodePathFinderOptions.heuristic used to navigate the gridsetH in interface NavigationNodepublic NavigationNode getParent()
getParent in interface NavigationNodepublic void setParent(NavigationNode parent)
NavigationNodesetParent in interface NavigationNodepublic int getClosedOnJob()
getClosedOnJob in interface NavigationNodepublic void setClosedOnJob(int closedOnJob)
setClosedOnJob in interface NavigationNodepublic int getOpenedOnJob()
getOpenedOnJob in interface NavigationNodepublic void setOpenedOnJob(int openedOnJob)
setOpenedOnJob in interface NavigationNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getX()
getX in interface NavigationGridGraphNodepublic int getY()
getY in interface NavigationGridGraphNodepublic void setX(int x)
setX in interface NavigationGridGraphNodepublic void setY(int y)
setY in interface NavigationGridGraphNode