| Package | be.dauntless.astar.basic3d |
| Class | public class GravityMap3D |
| Inheritance | GravityMap3D Map3D Object |
| Method | Defined By | ||
|---|---|---|---|
GravityMap3D(width:int, length:int, height:int)
Creates a new GravityMap object with the specified width en height
| GravityMap3D | ||
[override]
Returns the distance multiplier for the given two tiles. | GravityMap3D | ||
![]() | Map3D | ||
[override]
Returns a list with the neighbours of the given tile. | GravityMap3D | ||
![]() | getTileAt(position:Point):IPositionTile
Returns the IPositionTile at the given location
| Map3D | |
getTilesInColumn(p:Point):Vector.<IAstarTile>
Returns a list of IPositionTiles at the given (x,y) location. | GravityMap3D | ||
![]() | setTile(tile:IPositionTile):void
Sets the given tile at the given location
| Map3D | |
| GravityMap3D | () | Constructor |
public function GravityMap3D(width:int, length:int, height:int)Creates a new GravityMap object with the specified width en height
Parameterswidth:int — The width of the map
| |
length:int — The height of the map
| |
height:int |
| getDistance | () | method |
override public function getDistance(f:IAstarTile, t:IAstarTile):NumberReturns the distance multiplier for the given two tiles. For a this 3D Map, the Eucledean distance is used
Parameters
f:IAstarTile — The first point
| |
t:IAstarTile — The second point
|
Number — The multiplier to be used for setting the correct cost to go from the first tile to the second
|
| getNeighbours | () | method |
override public function getNeighbours(tile:IAstarTile):Vector.<IAstarTile>Returns a list with the neighbours of the given tile.
Parameters
tile:IAstarTile — The position of the tile to get the neighbours of
|
Vector.<IAstarTile> — A list containing all the neighbouring tiles
|
| getTilesInColumn | () | method |
public function getTilesInColumn(p:Point):Vector.<IAstarTile>Returns a list of IPositionTiles at the given (x,y) location. All the tiles in the specified column are returned
Parameters
p:Point |
Vector.<IAstarTile> — A vector list concisting of all the IAstarTiles in the given column
|