public class TiledMapTileLayer extends MapLayer
| Modifier and Type | Class and Description |
|---|---|
static class |
TiledMapTileLayer.Cell |
| Constructor and Description |
|---|
TiledMapTileLayer(int width,
int height,
int tileWidth,
int tileHeight)
Creates TiledMap layer
|
| Modifier and Type | Method and Description |
|---|---|
TiledMapTileLayer.Cell |
getCell(int x,
int y) |
int |
getHeight() |
float |
getTileHeight() |
float |
getTileWidth() |
int |
getWidth() |
void |
setCell(int x,
int y,
TiledMapTileLayer.Cell cell)
Sets the
TiledMapTileLayer.Cell at the given coordinates. |
getName, getObjects, getOffsetX, getOffsetY, getOpacity, getProperties, isVisible, setName, setOffsetX, setOffsetY, setOpacity, setVisiblepublic TiledMapTileLayer(int width,
int height,
int tileWidth,
int tileHeight)
width - layer width in tilesheight - layer height in tilestileWidth - tile width in pixelstileHeight - tile height in pixelspublic int getWidth()
public int getHeight()
public float getTileWidth()
public float getTileHeight()
public TiledMapTileLayer.Cell getCell(int x, int y)
x - X coordinatey - Y coordinateTiledMapTileLayer.Cell at (x, y)public void setCell(int x,
int y,
TiledMapTileLayer.Cell cell)
TiledMapTileLayer.Cell at the given coordinates.x - X coordinatey - Y coordinatecell - the TiledMapTileLayer.Cell to set at the given coordinates.