| Method | Defined by | ||
|---|---|---|---|
|
TileMap(width:int, height:int)
CONSTRUCTOR
| TileMap | ||
|
getHeight():int
| TileMap | ||
|
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 | ||
| TileMap | () | constructor |
public function TileMap(width:int, height:int)CONSTRUCTOR
Parameterswidth:int |
|
height:int |
| getHeight | () | method |
public function getHeight():int
Returns
int |
| getTile | () | method |
public function getTile(x:int, y:int):TileReturn a Tile at this position
Parametersx:int |
|
y:int |
Tile |
| getWidth | () | method |
public function getWidth():int
Returns
int |
| initialize | () | method |
public function initialize():voidSize the map and fill with empty tiles
| isWalkable | () | method |
public function isWalkable(x:int, y:int):BooleanParameters
x:int |
|
y:int |
Boolean |
| setWalkable | () | method |
public function setWalkable(x:int, y:int, walkable:Boolean):voidParameters
x:int |
|
y:int |
|
walkable:Boolean |