Show / Hide Table of Contents

Class AStarPathfinding

Implementation class for the A* Pathfinding algorithm. This algorith takes an admissible heuristic, and uses it to find the shortest path

Inheritance
object
AStarPathfinding
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class AStarPathfinding

Constructors

AStarPathfinding(IGrid, Cell, Func<Step, float?>, Func<Cell, float>)

Declaration
public AStarPathfinding(IGrid grid, Cell src, Func<Step, float?> stepLengths, Func<Cell, float> heuristic)
Parameters
Type Name Description
IGrid grid
Cell src
Func<Step, float?> stepLengths
Func<Cell, float> heuristic

Methods

ExtractPathTo(Cell)

Declaration
public CellPath ExtractPathTo(Cell target)
Parameters
Type Name Description
Cell target
Returns
Type Description
CellPath

Run(Cell)

Declaration
public void Run(Cell target)
Parameters
Type Name Description
Cell target
In this article
Back to top Generated by DocFX