C# Class UHSampleGame.PathFinding.AStar

Show file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Methods

Method Description
AStar ( Tile startTile, Tile goalTile ) : System
FindPath ( ) : List

Private Methods

Method Description
AddNeighborNodesToOpenList ( Node currentNode, List neighborTiles ) : void
GetDistanceBetweenTiles ( Tile tile1, Tile tile2 ) : float
GetDistanceToGoal ( Tile tile ) : float
GetLowestCostNodeFromOpenNodes ( ) : Node
GetWalkableNeighborsNotOnClosedList ( Node currentNode ) : List
TransformToNode ( Tile tile, Node parentNode ) : Node

Method Details

AStar() public method

public AStar ( Tile startTile, Tile goalTile ) : System
startTile UHSampleGame.TileSystem.Tile
goalTile UHSampleGame.TileSystem.Tile
return System

FindPath() public method

public FindPath ( ) : List
return List