C# Class AStarPathfinder, Augmented_Tactics

Mostra file Open project: Kavignon/Augmented_Tactics Class Usage Examples

Public Properties

Property Type Description
FinalPath List

Public Methods

Method Description
AStarPathfinder ( ) : System.Collections.Generic
CellsFromPath ( ) : List
CellsFromPath ( int size ) : List
FindPath ( Cell, startCell, Cell, goalCell, List map, bool targetCellMustBeFree ) : void
MovementCost ( Node, a, Node, b ) : float
PointsFromPath ( ) : List

Private Methods

Method Description
ExtractBestNodeFromOpenList ( ) : Node,
FindInCloseList ( Node, n ) : Node,
FindInOpenList ( Node, n ) : Node,
FindValidFourNeighbours ( Node, n ) : void
FindValidFourNeighboursIgnoreTargetCell ( Node, n ) : void
Heuristic ( Node, n ) : float
NodeIsGoal ( Node, node ) : bool
PrepareNewNodeFrom ( Node, n, int x, int y ) : Node,

Method Details

AStarPathfinder() public method

public AStarPathfinder ( ) : System.Collections.Generic
return System.Collections.Generic

CellsFromPath() public method

public CellsFromPath ( ) : List
return List

CellsFromPath() public method

public CellsFromPath ( int size ) : List
size int
return List

FindPath() public method

public FindPath ( Cell, startCell, Cell, goalCell, List map, bool targetCellMustBeFree ) : void
startCell Cell,
goalCell Cell,
map List
targetCellMustBeFree bool
return void

MovementCost() public method

public MovementCost ( Node, a, Node, b ) : float
a Node,
b Node,
return float

PointsFromPath() public method

public PointsFromPath ( ) : List
return List

Property Details

FinalPath public_oe property

public List FinalPath
return List