| Method | Defined By | ||
|---|---|---|---|
Returns the distance for the given two tiles. | IMap | ||
Returns the heuristic for the given tile and the given pathrequest. | IMap | ||
Returns a Vector list of IAstarTiles that are neighbours of the given IAstarTile
| IMap | ||
| getDistance | () | method |
public function getDistance(start:IAstarTile, end:IAstarTile):NumberReturns the distance for the given two tiles.
Parameters
start:IAstarTile | |
end:IAstarTile |
Number |
| getHeuristic | () | method |
public function getHeuristic(tile:IAstarTile, req:PathRequest):NumberReturns the heuristic for the given tile and the given pathrequest.
Parameters
tile:IAstarTile | |
req:PathRequest |
Number |
| getNeighbours | () | method |
public function getNeighbours(tile:IAstarTile):Vector.<IAstarTile>Returns a Vector list of IAstarTiles that are neighbours of the given IAstarTile
Parameters
tile:IAstarTile |
Vector.<IAstarTile> |