Class TilesetEntry
java.lang.Object
de.gurkenlabs.litiengine.environment.tilemap.xml.CustomPropertyProvider
de.gurkenlabs.litiengine.environment.tilemap.xml.TilesetEntry
- All Implemented Interfaces:
ICustomPropertyProvider, ITilesetEntry
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newTilesetEntry.TilesetEntry(Tileset tileset, int id) Instantiates a newTilesetEntryfrom the specified tileset.TilesetEntry(Tileset tileset, TilesetEntry original) -
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves all collision information from this tile.Gets the "standard" image for this tileset entry, without applying any animations.intgetId()getImage()Gets the current image for this tileset entry.Gets the collision layer for this tile, creating it if necessary.doubleGets the tileset that this entry belongs to.getType()voidsetAnimation(TileAnimation animation) voidsetProbability(double probability) voidMethods inherited from class CustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICustomPropertyProvider
getBoolValue, getBoolValue, getByteValue, getByteValue, getCharValue, getCharValue, getColorValue, getColorValue, getCommaSeparatedStringValues, getDoubleValue, getDoubleValue, getEnumValue, getEnumValue, getFileValue, getFileValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getMapObjectId, getProperties, getProperty, getShortValue, getShortValue, getStringValue, getStringValue, hasCustomProperty, removeProperty, setProperties, setValue, setValue, 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.
-
TilesetEntry
-
-
Method Details
-
getId
public int getId()- Specified by:
getIdin interfaceITilesetEntry
-
getAnimation
- Specified by:
getAnimationin interfaceITilesetEntry
-
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
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
- Specified by:
getTypein interfaceITilesetEntry
-
setType
-
getProbability
public double getProbability() -
setProbability
public void setProbability(double probability) -
setAnimation
-
getCollisionInfo
- Specified by:
getCollisionInfoin interfaceITilesetEntry
-
getOrCreateCollisionInfo
Gets the collision layer for this tile, creating it if necessary.- Returns:
- the collision layer
-
clearCollisionInfo
public void clearCollisionInfo()Removes all collision information from this tile.
-