com.badlogic.gdx.maps.tiled
Class TiledMapTileLayer
java.lang.Object
com.badlogic.gdx.maps.MapLayer
com.badlogic.gdx.maps.tiled.TiledMapTileLayer
public class TiledMapTileLayer
- extends MapLayer
Constructor Summary |
TiledMapTileLayer(int width,
int height,
int tileWidth,
int tileHeight)
Creates TiledMap layer |
TiledMapTileLayer
public TiledMapTileLayer(int width,
int height,
int tileWidth,
int tileHeight)
- Creates TiledMap layer
- Parameters:
width
- layer width in tilesheight
- layer height in tilestileWidth
- tile width in pixelstileHeight
- tile height in pixels
getWidth
public int getWidth()
- Returns:
- layer's witdth in tiles
getHeight
public int getHeight()
- Returns:
- layer's height in tiles
getTileWidth
public float getTileWidth()
- Returns:
- tiles' width in pixels
getTileHeight
public float getTileHeight()
- Returns:
- tiles' height in pixels
getCell
public TiledMapTileLayer.Cell getCell(int x,
int y)
- Parameters:
x
- y
-
- Returns:
- cell at (x, y)
setCell
public void setCell(int x,
int y,
TiledMapTileLayer.Cell cell)
- Sets the
TiledMapTileLayer.Cell
at the given coordinates.
- Parameters:
x
- y
- cell
-
Copyright © 2013. All Rights Reserved.