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
System.Object
AStarPathfinding
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class AStarPathfinding : Object

Constructors

AStarPathfinding(IGrid, Cell, Func<Step, Nullable<Single>>, Func<Cell, Single>)

Declaration
public AStarPathfinding(IGrid grid, Cell src, Func<Step, Nullable<float>> stepLengths, Func<Cell, float> heuristic)
Parameters
Type Name Description
IGrid grid
Cell src
System.Func<Step, System.Nullable<System.Single>> stepLengths
System.Func<Cell, System.Single> 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