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 ITilesetEntryConstructor Summary
Constructors Constructor Description TilesetEntry()Instantiates a newTilesetEntry.TilesetEntry(Tileset tileset, int id)Instantiates a newTilesetEntryfrom the specified tileset.Method Summary
Modifier and Type Method Description ITileAnimationgetAnimation()java.awt.image.BufferedImagegetBasicImage()Gets the "standard" image for this tileset entry, without applying any animations.IMapObjectLayergetCollisionInfo()intgetId()java.awt.image.BufferedImagegetImage()Gets the current image for this tileset entry.ITerrain[]getTerrain()protected int[]getTerrainIds()ITilesetgetTileset()Gets the tileset that this entry belongs to.java.lang.StringgetType()protected voidsetTerrains(ITerrain[] terrains)java.lang.StringtoString()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, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 newTilesetEntryfrom 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:
getIdin interfaceITilesetEntry
getTerrain
- Specified by:
getTerrainin interfaceITilesetEntry
getAnimation
- Specified by:
getAnimationin interfaceITilesetEntry
getImage
public java.awt.image.BufferedImage getImage()Description copied from interface:ITilesetEntryGets the current image for this tileset entry.- Specified by:
getImagein interfaceITilesetEntry- Returns:
- The current image for this tileset entry, accounting for animation.
getBasicImage
public java.awt.image.BufferedImage getBasicImage()Description copied from interface:ITilesetEntryGets the "standard" image for this tileset entry, without applying any animations.- Specified by:
getBasicImagein interfaceITilesetEntry- Returns:
- The standard image for this tileset entry
getTileset
Description copied from interface:ITilesetEntryGets the tileset that this entry belongs to.- Specified by:
getTilesetin interfaceITilesetEntry- Returns:
- The tileset for this entry
getType
public java.lang.String getType()- Specified by:
getTypein interfaceITilesetEntry
getCollisionInfo
- Specified by:
getCollisionInfoin interfaceITilesetEntry
setTerrains
getTerrainIds
protected int[] getTerrainIds()toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
