Packageorg.wak.baseoneonline.flash.map
Classpublic class TileMap
ImplementsIAStarSearchable



Public Methods
 MethodDefined by
  
TileMap(width:int, height:int)
CONSTRUCTOR
TileMap
  
getHeight():int
TileMap
  
getTile(x:int, y:int):Tile
Return a Tile at this position
TileMap
  
getWidth():int
TileMap
  
initialize():void
Size the map and fill with empty tiles
TileMap
  
isWalkable(x:int, y:int):Boolean
TileMap
  
setWalkable(x:int, y:int, walkable:Boolean):void
TileMap
Constructor detail
TileMap()constructor
public function TileMap(width:int, height:int)

CONSTRUCTOR

Parameters
width:int
 
height:int
Method detail
getHeight()method
public function getHeight():int

Returns
int
getTile()method 
public function getTile(x:int, y:int):Tile

Return a Tile at this position

Parameters
x:int
 
y:int

Returns
Tile
getWidth()method 
public function getWidth():int

Returns
int
initialize()method 
public function initialize():void

Size the map and fill with empty tiles

isWalkable()method 
public function isWalkable(x:int, y:int):BooleanParameters
x:int
 
y:int

Returns
Boolean
setWalkable()method 
public function setWalkable(x:int, y:int, walkable:Boolean):void

Parameters
x:int
 
y:int
 
walkable:Boolean