| Constructor and Description |
|---|
TileLayer(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the height of the layer
|
int |
getTileId(int x,
int y)
Returns the tile id at a given coordinate on the layer
|
int |
getWidth()
Returns the width of the layer
|
boolean |
isFlippedDiagonally(int x,
int y)
Returns if the tile at the given coordinate is flipped diagonally
|
boolean |
isFlippedHorizontally(int x,
int y)
Returns if the tile at the given coordinate is flipped horizontally
|
boolean |
isFlippedVertically(int x,
int y)
Returns if the tile at the given coordinate is flipped vertically
|
void |
setFlippedDiagonally(int x,
int y,
boolean flip)
Sets if the tile at the given coordinate is flipped diagonally
|
void |
setFlippedHorizontally(int x,
int y,
boolean flip)
Sets if the tile at the given coordinate is flipped horizontally
|
void |
setFlippedVertically(int x,
int y,
boolean flip)
Sets if the tile at the given coordinate is flipped vertically
|
void |
setTileId(int x,
int y,
int id)
Sets the tile id at a given coordinate on the layer
|
void |
setTileId(int x,
int y,
int id,
boolean flipH,
boolean flipV,
boolean flipD)
Sets the tile id at a given coordinate on the layer
|
containsProperty, getIndex, getLayerType, getName, getProperties, getProperty, isVisible, setIndex, setName, setProperty, setVisiblepublic int getTileId(int x,
int y)
x - The x coordinate in tilesy - The y coordinate in tilespublic void setTileId(int x,
int y,
int id)
x - The x coordinate in tilesy - The y coordinate in tilesid - 0 if there is no tilepublic void setTileId(int x,
int y,
int id,
boolean flipH,
boolean flipV,
boolean flipD)
x - The x coordinate in tilesy - The y coordinate in tilesid - 0 if there is no tileflipH - True if the tile is flipped horizontallyflipV - True if the tile is flipped verticallyflipD - True if the tile is flipped (anti) diagonally - rotationpublic boolean isFlippedHorizontally(int x,
int y)
x - The tile x coordinatey - The tile y coordinatepublic void setFlippedHorizontally(int x,
int y,
boolean flip)
x - The tile x coordinatey - The tile y coordinateflip - True if flipped horizontallypublic boolean isFlippedVertically(int x,
int y)
x - The tile x coordinatey - The tile y coordinatepublic void setFlippedVertically(int x,
int y,
boolean flip)
x - The tile x coordinatey - The tile y coordinateflip - True if flipped verticallypublic boolean isFlippedDiagonally(int x,
int y)
x - The tile x coordinatey - The tile y coordinatepublic void setFlippedDiagonally(int x,
int y,
boolean flip)
x - The tile x coordinatey - The tile y coordinateflip - True if flipped diagonallypublic int getWidth()
public int getHeight()