public class Tileset extends CustomPropertyProvider implements ITileset
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_EXTENSION |
protected Tileset |
sourceTileset |
| Constructor and Description |
|---|
Tileset() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ITileset obj) |
boolean |
containsTile(int tileId) |
boolean |
containsTile(ITile tile) |
ITileAnimation |
getAnimation(int tileId) |
int |
getColumns() |
int |
getFirstGridId()
Gets the first grid id.
|
IMapImage |
getImage()
Gets the image.
|
int |
getMargin()
Gets the margin.
|
java.lang.String |
getName()
Gets the name.
|
int |
getSpacing()
Gets the spacing.
|
Spritesheet |
getSpritesheet() |
ITerrain[] |
getTerrain(int tileId) |
java.util.List<ITerrain> |
getTerrainTypes() |
ITile |
getTile(int id) |
int |
getTileCount() |
java.awt.Dimension |
getTileDimension()
Gets the tile dimension.
|
int |
getTileHeight()
Gets the tile height.
|
ITileOffset |
getTileOffset() |
int |
getTileWidth()
Gets the tile width.
|
boolean |
isExternal() |
void |
load(java.util.List<Tileset> rawTilesets) |
void |
loadFromSource(java.lang.String basePath) |
void |
saveSource(java.lang.String basePath) |
void |
setMapPath(java.lang.String path) |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValuepublic static final java.lang.String FILE_EXTENSION
protected Tileset sourceTileset
public int compareTo(ITileset obj)
compareTo in interface java.lang.Comparable<ITileset>public int getFirstGridId()
ITilesetgetFirstGridId in interface ITilesetpublic int getMargin()
public java.lang.String getName()
ITilesetpublic int getSpacing()
getSpacing in interface ITilesetpublic Spritesheet getSpritesheet()
getSpritesheet in interface ITilesetpublic java.awt.Dimension getTileDimension()
ITilesetgetTileDimension in interface ITilesetpublic int getTileHeight()
getTileHeight in interface ITilesetpublic int getTileWidth()
getTileWidth in interface ITilesetpublic void setMapPath(java.lang.String path)
public java.util.List<ITerrain> getTerrainTypes()
getTerrainTypes in interface ITilesetpublic ITerrain[] getTerrain(int tileId)
getTerrain in interface ITilesetpublic ITileAnimation getAnimation(int tileId)
getAnimation in interface ITilesetpublic int getColumns()
getColumns in interface ITilesetpublic ITileOffset getTileOffset()
getTileOffset in interface ITilesetpublic int getTileCount()
getTileCount in interface ITilesetpublic boolean containsTile(ITile tile)
containsTile in interface ITilesetpublic boolean containsTile(int tileId)
containsTile in interface ITilesetpublic void loadFromSource(java.lang.String basePath)
public void saveSource(java.lang.String basePath)
public boolean isExternal()
public void load(java.util.List<Tileset> rawTilesets)