Click or drag to resize

PathT Class

Represents a linked-list of nodes and the running total of cost.

Result spited out by the AStar algorithm.

Inheritance Hierarchy
SystemObject
  Kit.AlgorithmsPathT

Namespace:  Kit.Algorithms
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class Path<T> : IEnumerable<T>, IEnumerable
Request Example View Source

Type Parameters

T
The type of a node.

The PathT type exposes the following members.

Constructors
  NameDescription
Public methodPathT
Initializes a new instance of the PathT class
Top
Properties
  NameDescription
Public propertyLastStep
Reference to the last node.
Public propertyPreviousSteps
A PathT to all the previous nodes.
Public propertyTotalCost
Total cost of this PathT.
Top
Methods
  NameDescription
Public methodAddStep
Add a new step to this PathT with the given stepCost.
Public methodGetEnumerator
Top
Extension Methods
  NameDescription
Public Extension MethodForEachT
Perform an action on a enumerable of items.
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOfT(T)Overloaded.
Return the index of an item, or -1 if not found.
(Defined by EnumerableExtensions.)
Public Extension MethodIndexOfT(T, IEqualityComparerT)Overloaded.
Return the index of an item, or -1 if not found.
(Defined by EnumerableExtensions.)
Public Extension MethodLogT
Log all the items in enumerable to the Console.
(Defined by EnumerableExtensions.)
Public Extension MethodWithIndexT
Allows to traverse over an enumerable along with the indices of items.
(Defined by EnumerableExtensions.)
Top
See Also