C# Class Universe.BotManager.AStar.MainClass

Test class for doing A* path finding on a 2D map.
Show file Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method Description
GetMap ( int x, int y ) : int

Gets movement cost from the 2-dimensional map

PrintSolution ( ArrayList aSolution ) : void

Prints the solution

Private Methods

Method Description
Main ( string args ) : void

Method Details

GetMap() public static method

Gets movement cost from the 2-dimensional map
public static GetMap ( int x, int y ) : int
x int X-coordinate
y int Y-coordinate
return int

PrintSolution() public static method

Prints the solution
public static PrintSolution ( ArrayList aSolution ) : void
aSolution System.Collections.ArrayList The list that holds the solution
return void