public class Tileset extends CustomPropertyProvider implements ITileset
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILE_EXTENSION |
protected Tileset |
sourceTileset |
Modifier and Type | Method and Description |
---|---|
boolean |
containsTile(int tileId) |
boolean |
containsTile(ITile tile) |
boolean |
containsTile(ITilesetEntry entry) |
void |
finish(java.net.URL location) |
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.
|
java.util.Map<java.lang.String,ICustomProperty> |
getProperties()
Returns a
Map view of the custom properties for this ICustomPropertyProvider . |
int |
getSpacing()
Gets the spacing.
|
Spritesheet |
getSpritesheet() |
ITerrain[] |
getTerrain(int tileId) |
java.util.List<ITerrain> |
getTerrainTypes() |
ITilesetEntry |
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 |
saveSource(java.lang.String basePath) |
void |
setName(java.lang.String name) |
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
public static final java.lang.String FILE_EXTENSION
protected Tileset sourceTileset
public Tileset()
public Tileset(Tileset source)
public java.util.Map<java.lang.String,ICustomProperty> getProperties()
ICustomPropertyProvider
Map
view of the custom properties for this ICustomPropertyProvider
.getProperties
in interface ICustomPropertyProvider
getProperties
in class CustomPropertyProvider
Map
view of the custom properties for this ICustomPropertyProvider
public int getFirstGridId()
ITileset
getFirstGridId
in interface ITileset
public int getMargin()
public java.lang.String getName()
Resource
public int getSpacing()
getSpacing
in interface ITileset
public Spritesheet getSpritesheet()
getSpritesheet
in interface ITileset
public java.awt.Dimension getTileDimension()
ITileset
getTileDimension
in interface ITileset
public int getTileHeight()
getTileHeight
in interface ITileset
public int getTileWidth()
getTileWidth
in interface ITileset
public java.util.List<ITerrain> getTerrainTypes()
getTerrainTypes
in interface ITileset
public ITerrain[] getTerrain(int tileId)
getTerrain
in interface ITileset
public int getColumns()
getColumns
in interface ITileset
public ITileOffset getTileOffset()
getTileOffset
in interface ITileset
public int getTileCount()
getTileCount
in interface ITileset
public ITilesetEntry getTile(int id)
public boolean containsTile(ITile tile)
containsTile
in interface ITileset
public boolean containsTile(int tileId)
containsTile
in interface ITileset
public boolean containsTile(ITilesetEntry entry)
containsTile
in interface ITileset
public void finish(java.net.URL location) throws TmxException
TmxException
public void saveSource(java.lang.String basePath)
public boolean isExternal()
public void load(java.util.List<Tileset> rawTilesets)