public static class TiledMapTileLayer.Cell extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ROTATE_0 |
static int |
ROTATE_180 |
static int |
ROTATE_270 |
static int |
ROTATE_90 |
Constructor and Description |
---|
Cell() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFlipHorizontally() |
boolean |
getFlipVertically() |
int |
getRotation() |
TiledMapTile |
getTile() |
TiledMapTileLayer.Cell |
setFlipHorizontally(boolean flipHorizontally)
Sets whether to flip the tile horizontally.
|
TiledMapTileLayer.Cell |
setFlipVertically(boolean flipVertically)
Sets whether to flip the tile vertically.
|
TiledMapTileLayer.Cell |
setRotation(int rotation)
Sets the rotation of this cell, in degrees.
|
TiledMapTileLayer.Cell |
setTile(TiledMapTile tile)
Sets the tile to be used for this cell.
|
public static final int ROTATE_0
public static final int ROTATE_90
public static final int ROTATE_180
public static final int ROTATE_270
public TiledMapTile getTile()
public TiledMapTileLayer.Cell setTile(TiledMapTile tile)
tile
- the TiledMapTile
to use for this cell.public boolean getFlipHorizontally()
public TiledMapTileLayer.Cell setFlipHorizontally(boolean flipHorizontally)
flipHorizontally
- whether or not to flip the tile horizontally.public boolean getFlipVertically()
public TiledMapTileLayer.Cell setFlipVertically(boolean flipVertically)
flipVertically
- whether or not this tile should be flipped vertically.public int getRotation()
public TiledMapTileLayer.Cell setRotation(int rotation)
rotation
- the rotation in degrees.Copyright © 2018. All rights reserved.