Class PathNode
Stores temporary node data for a single pathfinding request.
Every node (GraphNode) has one PathNode per thread used by default. Some path handlers use more than one PathNode per node, for example the CooperativePathHandler.
It stores e.g G score, H score and other temporary variables needed for path calculation, but which are not part of the graph structure.
Public Methods
Public Variables
F score.
Use as temporary flag during pathfinding.
Use as temporary flag during pathfinding.
G score, cost to get to this node.
H score, estimated cost to get to to the target.
Index of the node in the binary heap.
Reference to the actual graph node.
Parent node in the search tree.
The path request (in this thread, if multithreading is used) which last used this node.
Private/Protected Members
Cost uses the first 28 bits.
Flag 1 is at bit 28.
Flag 2 is at bit 29.
Bitpacked variable which stores several fields.
Backing field for the G score.
Backing field for the H score.