A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
NodeRun Class Reference
+ Collaboration diagram for NodeRun:

Public Member Functions

void Link (Node node, int index)
 Links this NodeRun with the specified node.
 
void Reset ()
 

Public Attributes

uint cost
 
uint g
 G score of this node.
 
uint h
 H score for this node.
 
NodeRun parent
 
ushort pathID
 

Properties

uint f [get]
 F score.
 
Node node [get, set]
 

Member Function Documentation

void Link ( Node  node,
int  index 
)

Links this NodeRun with the specified node.

Parameters
nodeNode to link to
indexIndex of this NodeRun in the nodeRuns array in Pathfinding::AstarData

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint g

G score of this node.

The G score is the total cost from the start to this node.

uint h

H score for this node.

The H score is the estimated cost from this node to the end.

Property Documentation

uint f
get

F score.

The F score is the g score + h score, that is the cost it taken to move to this node from the start + the estimated cost to move to the end node.
Nodes are sorted by their F score, nodes with lower F scores are opened first


The documentation for this class was generated from the following file: