Table of Contents

Class StoredPath<TCoordinates>

Namespace
AlphaFramework.World.Paths
Assembly
AlphaFramework.World.dll

Stores a path calculated by IPathfinder<TCoordinates>.

public class StoredPath<TCoordinates> : ICloneable where TCoordinates : struct

Type Parameters

TCoordinates

Data type for storing position coordinates of objects in the game world.

Inheritance
object
StoredPath<TCoordinates>
Implements

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 deep copy of this StoredPath<TCoordinates> instance.

public virtual StoredPath<TCoordinates> Clone()

Returns

StoredPath<TCoordinates>

The new copy of the StoredPath<TCoordinates>.

CloneFromTo(StoredPath<TCoordinates>, StoredPath<TCoordinates>)

Copies all members declared by StoredPath<TCoordinates> from one instance to another.

protected static void CloneFromTo(StoredPath<TCoordinates> from, StoredPath<TCoordinates> to)

Parameters

from StoredPath<TCoordinates>
to StoredPath<TCoordinates>

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

See Also