Метод | Описание | |
---|---|---|
GetDistance ( GridField first, GridField second ) : int |
Gets the distance between two GridFields.
|
|
GetGridField ( int x, int y ) : GridField |
Returns a GridField on the specific position.
|
|
Grid ( int width, int height ) : System.Collections.Generic |
Initializes a new Grid class.
|
Метод | Описание | |
---|---|---|
GetNeighbors ( int x, int y ) : Sharpex2D.Common.Pathfinding.Neighbor[] |
Returns all Neighbors of a field.
|
public GetDistance ( GridField first, GridField second ) : int | ||
first | GridField | The first GridField. |
second | GridField | The second GridField. |
Результат | int |
public GetGridField ( int x, int y ) : GridField | ||
x | int | The X-Coord. |
y | int | The Y-Coord. |
Результат | GridField |
public Grid ( int width, int height ) : System.Collections.Generic | ||
width | int | The Width. |
height | int | The Height. |
Результат | System.Collections.Generic |