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 |
---|
TiledMapTileLayer.Cell() |
Modifier and Type | Method and Description |
---|---|
boolean |
getFlipHorizontally() |
boolean |
getFlipVertically() |
int |
getRotation() |
TiledMapTile |
getTile() |
void |
setFlipHorizontally(boolean flipHorizontally)
Sets whether to flip the tile horizontally.
|
void |
setFlipVertically(boolean flipVertically)
Sets whether to flip the tile vertically.
|
void |
setRotation(int rotation)
Sets the rotation of this cell, in degrees.
|
void |
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 void setTile(TiledMapTile tile)
tile
- the TiledMapTile
to use for this cell.public boolean getFlipHorizontally()
public void setFlipHorizontally(boolean flipHorizontally)
flipHorizontally
- whether or not to flip the tile horizontally.public boolean getFlipVertically()
public void setFlipVertically(boolean flipVertically)
flipVertically
- whether or not this tile should be flipped vertically.public int getRotation()
public void setRotation(int rotation)
rotation
- the rotation in degrees.Copyright © 2015. All rights reserved.