Skip to main content

IAStarNode<TNode, TConnection>

An interface in Root.Township, the global namespace.

A node the A* pathfinder can search.

Properties​

MemberWhat it is
string Name { get; }Display name of the node.
AStarWorkingNode<TNode, TConnection> WorkingNode { get; set; }Search state the pathfinder stores on the node during a search.

Methods​

MemberWhat it is
float CalculateHeuristic(TNode target)Estimated cost from this node to the target.
ICollection<TConnection> GetConnectionsForAStar()Links leading out of this node.