public class UniformTileSet extends TileSet
TileSet.Colorizer| Constructor and Description |
|---|
UniformTileSet() |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
computeTileBounds(int tileIndex,
Rectangle bounds)
Computes and fills in the bounds for the specified tile based on the mechanism used by the
derived class to do such things.
|
int |
getHeight()
Returns the height of the tiles in this tileset.
|
int |
getTileCount()
Returns the number of tiles in the tileset.
|
int |
getWidth()
Returns the width of the tiles in this tileset.
|
void |
setHeight(int height)
Specifies the height of the tiles in this tileset.
|
void |
setWidth(int width)
Specifies the width of the tiles in this tileset.
|
clone, clone, getImagePath, getName, getRawTileImage, getRawTileSetImage, getTile, getTile, getTile, getTileMirage, getTileMirage, getTileMirages, setImagePath, setImageProvider, setName, toStringpublic int getTileCount()
TileSetgetTileCount in class TileSetpublic Rectangle computeTileBounds(int tileIndex, Rectangle bounds)
TileSetcomputeTileBounds in class TileSettileIndex - the index of the tile whose bounds are to be computed.bounds - the rectangle object into which to fill the bounds.public void setWidth(int width)
public int getWidth()
public void setHeight(int height)
public int getHeight()
Copyright © 2015. All rights reserved.