Packagebe.dauntless.astar.core
Interfacepublic interface IMap
Implementors Map, Map3D



Public Methods
 MethodDefined By
  
getDistance(start:IAstarTile, end:IAstarTile):Number
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
Method Detail
getDistance()method
public function getDistance(start:IAstarTile, end:IAstarTile):Number

Returns the distance for the given two tiles.

Parameters

start:IAstarTile
 
end:IAstarTile

Returns
Number
getHeuristic()method 
public function getHeuristic(tile:IAstarTile, req:PathRequest):Number

Returns the heuristic for the given tile and the given pathrequest.

Parameters

tile:IAstarTile
 
req:PathRequest

Returns
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

Returns
Vector.<IAstarTile>