public abstract class TiledTileLayer extends TiledLayer
A TiledTileLayer represents a tile layer. It corresponds to a <layer> tag in a Tiled XML file.
Modifier and Type | Method and Description |
---|---|
abstract TiledTile |
getTile(int x,
int y)
Returns the tile at the specified location in this tile layer's grid, or
null if there is none.
|
abstract boolean |
getTileDiagonalFlip(int x,
int y)
Returns whether the tile at the specified location in this tile layer's
grid is flipped diagonally, or false if there is no tile there.
|
abstract boolean |
getTileHorizontalFlip(int x,
int y)
Returns whether the tile at the specified location in this tile layer's
grid is flipped horizontally, or false if there is no tile there.
|
abstract Set<Point> |
getTileLocations()
Returns an unmodifiable Set view of the (x, y) locations in this tile
layer's grid where tiles are located.
|
abstract boolean |
getTileVerticalFlip(int x,
int y)
Returns whether the tile at the specified location in this tile layer's
grid is flipped vertically, or false if there is no tile there.
|
abstract int |
getX1()
Returns the lowest x-coordinate in tiles of any tile in this tile layer,
or 0 if this tile layer has no tiles.
|
abstract int |
getX2()
Returns the highest x-coordinate in tiles of any tile in this tile layer,
or -1 if this tile layer has no tiles.
|
abstract int |
getY1()
Returns the lowest y-coordinate in tiles of any tile in this tile layer,
or 0 if this tile layer has no tiles.
|
abstract int |
getY2()
Returns the highest y-coordinate in tiles of any tile in this tile layer,
or -1 if this tile layer has no tiles.
|
getAbsOffsetX, getAbsOffsetY, getAbsOpacity, getAbsTintColor, getAbsVisible, getName, getParent, getProperties, getProperty, getRelOffsetX, getRelOffsetY, getRelOpacity, getRelTintColor, getRelVisible
public abstract Set<Point> getTileLocations()
public abstract int getX1()
public abstract int getY1()
public abstract int getX2()
public abstract int getY2()
public abstract TiledTile getTile(int x, int y)
x
- The x-coordinate in tiles of the locationy
- The y-coordinate in tiles of the locationpublic abstract boolean getTileHorizontalFlip(int x, int y)
x
- The x-coordinate in tiles of the locationy
- The y-coordinate in tiles of the locationpublic abstract boolean getTileVerticalFlip(int x, int y)
x
- The x-coordinate in tiles of the locationy
- The y-coordinate in tiles of the locationpublic abstract boolean getTileDiagonalFlip(int x, int y)
x
- The x-coordinate in tiles of the locationy
- The y-coordinate in tiles of the locationCopyright © 2020. All rights reserved.