Skip to main content

AStarWorkingNode<TNode, TConnection>

A class in Root.Township, the global namespace.

Per-node scratch data that AStar keeps while it searches: best cost so far and step count.

Constructors​

MemberWhat it is
AStarWorkingNode(TNode node)Creates an AStarWorkingNode from node.

Properties​

MemberWhat it is
float AproximateTotalCost { get; set; }Cost used to sort the open list. AStar sets it to the same value as LowestCost (no heuristic is added).
float LowestCost { get; set; }Lowest path cost found so far from the start node to this node.
TNode Node { get; set; }The graph node this working data belongs to.
int NodesCount { get; set; }Number of steps from the start node on the best path so far. Checked against maxNodeCount.

Used in​

Members of other types that take, return or hold a AStarWorkingNode&lt;TNode, TConnection>: