C# Class Universe.BotManager.AStar.StartPath

Datei anzeigen Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
CurrentMap ].int[
XLimit int
YLimit int

Public Methods

Method Description
CalcSlope ( int y2, int y1, int x2, int x1 ) : int
GetMap ( int x, int y ) : int

Gets movement cost from the 2-dimensional map -1 blocks off all movement there

Path ( int startx, int starty, int endx, int endy, int endz, int csx, int csy ) : List

Private Methods

Method Description
ReadMap ( string map, int mapx, int mapy ) : ].int[

Method Details

CalcSlope() public static method

public static CalcSlope ( int y2, int y1, int x2, int x1 ) : int
y2 int
y1 int
x2 int
x1 int
return int

GetMap() public static method

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

Path() public static method

public static Path ( int startx, int starty, int endx, int endy, int endz, int csx, int csy ) : List
startx int
starty int
endx int
endy int
endz int
csx int
csy int
return List

Property Details

CurrentMap public_oe static_oe property

public static int[,] CurrentMap
return ].int[

XLimit public_oe static_oe property

public static int XLimit
return int

YLimit public_oe static_oe property

public static int YLimit
return int