Class Tileset
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.Tileset
- All Implemented Interfaces:
ICustomPropertyProvider,ITileset,Resource,Comparable<Resource>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsTile(int tileId) booleancontainsTile(ITile tile) booleancontainsTile(ITilesetEntry entry) voidintintGets the first grid id.getImage()Gets the image.intGets the margin.getName()Gets the name.Returns aMapview of the custom properties for thisICustomPropertyProvider.intGets the spacing.Gets the terrain sets defined by this tile set.getTile(int id) intGets the tile dimension.intGets the tile height.intGets the tile width.booleanvoidvoidsaveSource(String basePath) voidMethods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
-
Field Details
-
FILE_EXTENSION
- See Also:
-
sourceTileset
-
-
Constructor Details
-
Tileset
public Tileset() -
Tileset
-
-
Method Details
-
getProperties
Description copied from interface:ICustomPropertyProviderReturns aMapview of the custom properties for thisICustomPropertyProvider.- Specified by:
getPropertiesin interfaceICustomPropertyProvider- Overrides:
getPropertiesin classCustomPropertyProvider- Returns:
- a
Mapview of the custom properties for thisICustomPropertyProvider
-
getFirstGridId
public int getFirstGridId()Description copied from interface:ITilesetGets the first grid id.- Specified by:
getFirstGridIdin interfaceITileset- Returns:
- the first grid id
-
getImage
Description copied from interface:ITilesetGets the image. -
getMargin
public int getMargin()Gets the margin. -
getName
Description copied from interface:ResourceGets the name. -
setName
-
getSpacing
public int getSpacing()Gets the spacing.- Specified by:
getSpacingin interfaceITileset- Returns:
- the spacing
-
getSpritesheet
- Specified by:
getSpritesheetin interfaceITileset
-
getTileDimension
Description copied from interface:ITilesetGets the tile dimension.- Specified by:
getTileDimensionin interfaceITileset- Returns:
- the tile dimension
-
getTileHeight
public int getTileHeight()Gets the tile height.- Specified by:
getTileHeightin interfaceITileset- Returns:
- the tile height
-
getTileWidth
public int getTileWidth()Gets the tile width.- Specified by:
getTileWidthin interfaceITileset- Returns:
- the tile width
-
getColumns
public int getColumns()- Specified by:
getColumnsin interfaceITileset
-
getTileOffset
- Specified by:
getTileOffsetin interfaceITileset
-
getTileCount
public int getTileCount()- Specified by:
getTileCountin interfaceITileset
-
getTile
-
getTransformations
-
getTilesetClass
-
getObjectalignment
-
getTilerendersize
-
getFillmode
-
containsTile
- Specified by:
containsTilein interfaceITileset
-
containsTile
public boolean containsTile(int tileId) - Specified by:
containsTilein interfaceITileset
-
getTerrainSets
Description copied from interface:ITilesetGets the terrain sets defined by this tile set.- Specified by:
getTerrainSetsin interfaceITileset- Returns:
- The terrain sets of this instance.
-
containsTile
- Specified by:
containsTilein interfaceITileset
-
finish
- Throws:
TmxException
-
saveSource
-
isExternal
public boolean isExternal() -
load
-