Method | Description | |
---|---|---|
AStarNode2D ( |
Constructor for a node in a 2-dimensional map
|
|
Calculate ( ) : void |
Calculates the estimated cost for the remaining trip to the goal.
|
|
GetSuccessors ( |
Gets all successors nodes from the current node and adds them to the successor list
|
|
IsSameState ( |
Determines whether the current node is the same state as the on passed.
|
|
PrintNodeInfo ( ) : int[] |
Prints information about the current node
|
Method | Description | |
---|---|---|
AddSuccessor ( |
Adds a successor to a list if it is not impassible or the parent node
|
public AStarNode2D ( |
||
aParent | Parent of the node | |
aGoalNode | Goal node | |
aCost | double | Accumulative cost |
aX | int | X-coordinate |
aY | int | Y-coordinate |
return | System |
public GetSuccessors ( |
||
aSuccessors | List in which the successors will be added | |
return | void |
public IsSameState ( |
||
aNode | AStarNode to compare the current node to | |
return | bool |