Class TilesetEntry
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.TilesetEntry
- All Implemented Interfaces:
ICustomPropertyProvider
,ITilesetEntry
public class TilesetEntry
extends CustomPropertyProvider
implements ITilesetEntry
Constructor Summary
Constructors Constructor Description TilesetEntry()
Instantiates a newTilesetEntry
.TilesetEntry(Tileset tileset, int id)
Instantiates a newTilesetEntry
from the specified tileset.Method Summary
Modifier and Type Method Description ITileAnimation
getAnimation()
java.awt.image.BufferedImage
getBasicImage()
Gets the "standard" image for this tileset entry, without applying any animations.IMapObjectLayer
getCollisionInfo()
int
getId()
java.awt.image.BufferedImage
getImage()
Gets the current image for this tileset entry.ITerrain[]
getTerrain()
protected int[]
getTerrainIds()
ITileset
getTileset()
Gets the tileset that this entry belongs to.java.lang.String
getType()
protected void
setTerrains(ITerrain[] terrains)
java.lang.String
toString()
Methods inherited from class de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.gurkenlabs.litiengine.environment.tilemap.ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, getTypeOfProperty, hasCustomProperty, removeProperty, setProperties, setTypeOfProperty, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
Constructor Details
TilesetEntry
public TilesetEntry()Instantiates a newTilesetEntry
.TilesetEntry
Instantiates a newTilesetEntry
from the specified tileset.- Parameters:
tileset
- The tileset that contains this entry.id
- The identifier of this instance.
Method Details
getId
public int getId()- Specified by:
getId
in interfaceITilesetEntry
getTerrain
- Specified by:
getTerrain
in interfaceITilesetEntry
getAnimation
- Specified by:
getAnimation
in interfaceITilesetEntry
getImage
public java.awt.image.BufferedImage getImage()Description copied from interface:ITilesetEntry
Gets the current image for this tileset entry.- Specified by:
getImage
in interfaceITilesetEntry
- Returns:
- The current image for this tileset entry, accounting for animation.
getBasicImage
public java.awt.image.BufferedImage getBasicImage()Description copied from interface:ITilesetEntry
Gets the "standard" image for this tileset entry, without applying any animations.- Specified by:
getBasicImage
in interfaceITilesetEntry
- Returns:
- The standard image for this tileset entry
getTileset
Description copied from interface:ITilesetEntry
Gets the tileset that this entry belongs to.- Specified by:
getTileset
in interfaceITilesetEntry
- Returns:
- The tileset for this entry
getType
public java.lang.String getType()- Specified by:
getType
in interfaceITilesetEntry
getCollisionInfo
- Specified by:
getCollisionInfo
in interfaceITilesetEntry
setTerrains
getTerrainIds
protected int[] getTerrainIds()toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object