Class StoredPath<TCoordinates>
- Namespace
- AlphaFramework.World.Paths
- Assembly
- AlphaFramework.World.dll
Stores a path calculated by Pathfinder.
public class StoredPath<TCoordinates> : ICloneable where TCoordinates : struct
Type Parameters
TCoordinates
Data type for storing position coordinates of objects in the game world.
- Inheritance
-
StoredPath<TCoordinates>
- Implements
- Inherited Members
- Extension Methods
Properties
PathNodes
The path to walk.
public Queue<TCoordinates> PathNodes { get; }
Property Value
- Queue<TCoordinates>
Target
The final target of the pathfinding.
public TCoordinates Target { get; set; }
Property Value
- TCoordinates
Methods
Clone()
Creates a shallow copy of this StoredPath<TCoordinates>
public StoredPath<TCoordinates> Clone()
Returns
- StoredPath<TCoordinates>
The cloned StoredPath<TCoordinates>.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.