Creates a Node object for use with path finding. More...
#include <Node.h>
Public Member Functions | |
JAM_Node (int nodeXIndex, int nodeYIndex) | |
~JAM_Node () | |
void | setParentIndex (int parentNodeXIndex, int parentNodeYIndex) |
int | getParentXIndex () |
int | getParentYIndex () |
void | setStartNode (bool startNode) |
bool | getStartNode () |
void | setEndNode (bool endNode) |
bool | getEndNode () |
void | setSafeNode (bool safe) |
bool | getSafeNode () |
void | setCostNode (int cost) |
int | getCostNode () |
void | setFScoreNode (int fScore) |
int | getFScoreNode () |
int | getXIndex () |
int | getYIndex () |
void | setListed (bool listed) |
bool | getListed () |
Private Attributes | |
int | parentNodeXIndex |
int | parentNodeYIndex |
int | nodeXIndex |
int | nodeYIndex |
bool | startNode |
bool | endNode |
bool | safe |
int | cost |
int | fScore |
bool | listed |
Creates a Node object for use with path finding.
JAM_Node::JAM_Node | ( | int | nodeXIndex, |
int | nodeYIndex | ||
) |
Constructs the Node object.
nodeXIndex | The Node x index. |
nodeYIndex | The Node y index. |
JAM_Node::~JAM_Node | ( | ) |
Destructs the Node object.
int JAM_Node::getCostNode | ( | ) |
Getter # Get the cost.
bool JAM_Node::getEndNode | ( | ) |
Getter # Get If the node is an endNode.
int JAM_Node::getFScoreNode | ( | ) |
Getter # Get the fScore.
bool JAM_Node::getListed | ( | ) |
Getter # Get the value of listed.
int JAM_Node::getParentXIndex | ( | ) |
Getter # Get the parentNode X index.
int JAM_Node::getParentYIndex | ( | ) |
Getter # Get the parentNode Y index.
bool JAM_Node::getSafeNode | ( | ) |
Getter # Get If the node is safe.
bool JAM_Node::getStartNode | ( | ) |
Getter # Get If the node is a startNode.
int JAM_Node::getXIndex | ( | ) |
Getter # Get the x index.
int JAM_Node::getYIndex | ( | ) |
Getter # Get the y index.
void JAM_Node::setCostNode | ( | int | cost | ) |
Setter # Set the cost.
cost | The cost to move to the node. |
void JAM_Node::setEndNode | ( | bool | endNode | ) |
Setter # Set the node.
bool | The setting of the node. |
void JAM_Node::setFScoreNode | ( | int | fScore | ) |
Setter # Set the fScore.
fScore | The fScore to of the node. |
void JAM_Node::setListed | ( | bool | listed | ) |
Setter # Set the value of listed.
listed | If the node is listed. |
void JAM_Node::setParentIndex | ( | int | parentNodeXIndex, |
int | parentNodeYIndex | ||
) |
Setter # Set the parentNode index.
parentNodeXIndex | The X index of the parentNode. |
parentNodeYIndex | The Y index of the parentNode. |
void JAM_Node::setSafeNode | ( | bool | safe | ) |
Setter # Set the node.
safe | The setting of the node. |
void JAM_Node::setStartNode | ( | bool | startNode | ) |
Setter # Set the node.
startNode | The setting of the node. |
|
private |
The cost to move to the node.
|
private |
|
private |
The f score of the node.
|
private |
Boolean values for if the node is on a list.
|
private |
The index of the node.
|
private |
|
private |
The index of the parent node.
|
private |
|
private |
If the node safe to walk on.
|
private |
Boolean values to if they are a specific node.