C# Class Universe.BotManager.AStar.AStar

Class for performing A* pathfinding
Exibir arquivo Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Methods

Method Description
AStar ( ) : System
FindPath ( AStarNode aStartNode, AStarNode aGoalNode ) : void

Finds the shortest path from the start node to the goal node

Private Methods

Method Description
PrintNodeList ( object aNodeList ) : void

Prints all the nodes in a list

Method Details

AStar() public method

public AStar ( ) : System
return System

FindPath() public method

Finds the shortest path from the start node to the goal node
public FindPath ( AStarNode aStartNode, AStarNode aGoalNode ) : void
aStartNode AStarNode Start node
aGoalNode AStarNode Goal node
return void