Click or drag to resize

AlgorithmsAStarTCell, TPoint Method (IGridTCell, TPoint, TPoint, TPoint, FuncTPoint, TPoint, Single, FuncTCell, Boolean, FuncTPoint, TPoint, Single)

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IEnumerable<TPoint> AStar<TCell, TPoint>(
	IGrid<TCell, TPoint> grid,
	TPoint start,
	TPoint goal,
	Func<TPoint, TPoint, float> heuristicCostEstimate,
	Func<TCell, bool> isAccessible,
	Func<TPoint, TPoint, float> neighborToNeighborCost
)
where TPoint : Object, IGridPoint<TPoint>

Parameters

grid
Type: Gamelogic.GridsIGridTCell, TPoint
start
Type: TPoint
goal
Type: TPoint
heuristicCostEstimate
Type: SystemFuncTPoint, TPoint, Single
isAccessible
Type: SystemFuncTCell, Boolean
neighborToNeighborCost
Type: SystemFuncTPoint, TPoint, Single

Type Parameters

TCell
TPoint

Return Value

Type: IEnumerableTPoint
See Also