com.badlogic.gdx.maps.tiled
Class TiledMapTileLayer.Cell
java.lang.Object
com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell
- Enclosing class:
- TiledMapTileLayer
public static class TiledMapTileLayer.Cell
- extends Object
ROTATE_0
public static final int ROTATE_0
- See Also:
- Constant Field Values
ROTATE_90
public static final int ROTATE_90
- See Also:
- Constant Field Values
ROTATE_180
public static final int ROTATE_180
- See Also:
- Constant Field Values
ROTATE_270
public static final int ROTATE_270
- See Also:
- Constant Field Values
TiledMapTileLayer.Cell
public TiledMapTileLayer.Cell()
getTile
public TiledMapTile getTile()
- Returns:
- The tile currently assigned to this cell.
setTile
public void setTile(TiledMapTile tile)
- Sets the tile to be used for this cell.
- Parameters:
tile
-
getFlipHorizontally
public boolean getFlipHorizontally()
- Returns:
- Whether the tile should be flipped horizontally.
setFlipHorizontally
public void setFlipHorizontally(boolean flipHorizontally)
- Sets whether to flip the tile horizontally.
- Parameters:
flipHorizontally
-
getFlipVertically
public boolean getFlipVertically()
- Returns:
- Whether the tile should be flipped vertically.
setFlipVertically
public void setFlipVertically(boolean flipVertically)
- Sets whether to flip the tile vertically.
- Parameters:
flipVertically
-
getRotation
public int getRotation()
- Returns:
- The rotation of this cell, in degrees.
setRotation
public void setRotation(int rotation)
- Sets the rotation of this cell, in degrees.
- Parameters:
rotation
-
Copyright © 2013. All Rights Reserved.