C# Class AStar_Incomplete.AStarPathFinder

Show file Open project: Andrea/IncompleteGameLabs Class Usage Examples

Public Methods

Method Description
AStarPathFinder ( AStar_Incomplete.Map map ) : System.Collections.Generic
CalculatePath ( ) : void

Private Methods

Method Description
AddAdjacentCellToOpenList ( AStar_Incomplete.Node parentNode, int gCost, int cellIndex ) : void
ExploreNode ( AStar_Incomplete.Node parentNode, int columnOffset, int rowOffset, int gCost ) : void
FindNodeWithSmallestF ( List nodes ) : AStar_Incomplete.Node
OpenUpdatePathCost ( AStar_Incomplete.Node parentNode, int gCost, int cellIndex ) : bool

Method Details

AStarPathFinder() public method

public AStarPathFinder ( AStar_Incomplete.Map map ) : System.Collections.Generic
map AStar_Incomplete.Map
return System.Collections.Generic

CalculatePath() public method

public CalculatePath ( ) : void
return void