| Modifier and Type | Class and Description |
|---|---|
| public static class | TiledMapTileLayer.
@brief represents a cell in a TiledLayer: TiledMapTile, flip and rotation properties. |
| Modifier and Type | Field and Description |
|---|---|
| private TiledMapTileLayer. | |
| private int | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | TiledMapTileLayer(int
layer width in tiles width, int layer height in tiles height, int tile width in pixels tileWidth, int tile height in pixels tileHeight)Creates TiledMap layer |
| Modifier and Type | Method and Description |
|---|---|
| public TiledMapTileLayer. | |
| public int | |
| public int | |
| public int | |
| public int | |
| public void | setCell(int
X coordinate x, int Y coordinate y, TiledMapTileLayer.the cellCell to set at the given coordinates.Sets the |
| cells | back to summary |
|---|---|
| private TiledMapTileLayer. | |
| height | back to summary |
|---|---|
| private int height | |
| tileHeight | back to summary |
|---|---|
| private int tileHeight | |
| tileWidth | back to summary |
|---|---|
| private int tileWidth | |
| width | back to summary |
|---|---|
| private int width | |
| TiledMapTileLayer | back to summary |
|---|---|
| public TiledMapTileLayer(int width, int height, int tileWidth, int tileHeight) Creates TiledMap layer
| |
| getCell | back to summary |
|---|---|
public TiledMapTileLayer.
| |
| getHeight | back to summary |
|---|---|
public int getHeight()
| |
| getTileHeight | back to summary |
|---|---|
public int getTileHeight()
| |
| getTileWidth | back to summary |
|---|---|
public int getTileWidth()
| |
| getWidth | back to summary |
|---|---|
public int getWidth()
| |
| setCell | back to summary |
|---|---|
| public void setCell(int x, int y, TiledMapTileLayer. Sets the
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| private TiledMapTile |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public int | |
| public TiledMapTile | |
| public TiledMapTileLayer. | Returns: this, for method chainingwhether or not to flip the tile horizontally. flipHorizontally)Sets whether to flip the tile horizontally. |
| public TiledMapTileLayer. | Returns: this, for method chainingwhether or not this tile should be flipped vertically. flipVertically)Sets whether to flip the tile vertically. |
| public TiledMapTileLayer. | Returns: this, for method chainingthe rotation in 90 degree increments (see ints below). rotation)Sets the rotation of this cell, in 90 degree increments. |
| public TiledMapTileLayer. | Returns: this, for method chainingthe tile)TiledMapTile to use for this cell.Sets the tile to be used for this cell. |
| flipHorizontally | back to summary |
|---|---|
| private boolean flipHorizontally | |
| flipVertically | back to summary |
|---|---|
| private boolean flipVertically | |
| ROTATE_0 | back to summary |
|---|---|
| public static final int ROTATE_0 | |
| ROTATE_180 | back to summary |
|---|---|
| public static final int ROTATE_180 | |
| ROTATE_270 | back to summary |
|---|---|
| public static final int ROTATE_270 | |
| ROTATE_90 | back to summary |
|---|---|
| public static final int ROTATE_90 | |
| rotation | back to summary |
|---|---|
| private int rotation | |
| tile | back to summary |
|---|---|
| private TiledMapTile tile | |
| Cell | back to summary |
|---|---|
| public Cell() | |
| getFlipHorizontally | back to summary |
|---|---|
public boolean getFlipHorizontally()
| |
| getFlipVertically | back to summary |
|---|---|
public boolean getFlipVertically()
| |
| getRotation | back to summary |
|---|---|
public int getRotation()
| |
| getTile | back to summary |
|---|---|
public TiledMapTile getTile()
| |
| setFlipHorizontally | back to summary |
|---|---|
| public TiledMapTileLayer. Sets whether to flip the tile horizontally.
| |
| setFlipVertically | back to summary |
|---|---|
| public TiledMapTileLayer. Sets whether to flip the tile vertically.
| |
| setRotation | back to summary |
|---|---|
| public TiledMapTileLayer. Sets the rotation of this cell, in 90 degree increments.
| |
| setTile | back to summary |
|---|---|
| public TiledMapTileLayer. Sets the tile to be used for this cell.
| |