APIdia Launch Partner
Top Description Inners Methods
com.badlogic.gdx.maps.tiled

public Interface TiledMapTile

Known Direct Implementers
com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile, com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
Imports
com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.maps.MapObjects, .MapProperties

@brief Generalises the concept of tile in a TiledMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Method Summary

Modifier and TypeMethod and Description
public TiledMapTile.BlendMode
getBlendMode()

Returns: the BlendMode to use for rendering the tile

public int
public MapObjects
getObjects()

Returns: collection of objects contained in the tile

public float
getOffsetX()

Returns: the amount to offset the x position when rendering the tile

public float
getOffsetY()

Returns: the amount to offset the y position when rendering the tile

public MapProperties
getProperties()

Returns: tile's properties set

public TextureRegion
getTextureRegion()

Returns: texture region used to render the tile

public void
setBlendMode(TiledMapTile.BlendMode
the blend mode to use for rendering the tile
blendMode
)

Sets the BlendMode to use for rendering the tile

public void
setId(int id)

public void
setOffsetX(float offsetX)

Set the amount to offset the x position when rendering the tile

public void
setOffsetY(float offsetY)

Set the amount to offset the y position when rendering the tile

public void
setTextureRegion(TextureRegion textureRegion)

Sets the texture region used to render the tile

Method Detail

getBlendModeback to summary
public TiledMapTile.BlendMode getBlendMode()
Returns:TiledMapTile.BlendMode

the BlendMode to use for rendering the tile

getIdback to summary
public int getId()
getObjectsback to summary
public MapObjects getObjects()
Returns:MapObjects

collection of objects contained in the tile

getOffsetXback to summary
public float getOffsetX()
Returns:float

the amount to offset the x position when rendering the tile

getOffsetYback to summary
public float getOffsetY()
Returns:float

the amount to offset the y position when rendering the tile

getPropertiesback to summary
public MapProperties getProperties()
Returns:MapProperties

tile's properties set

getTextureRegionback to summary
public TextureRegion getTextureRegion()
Returns:TextureRegion

texture region used to render the tile

setBlendModeback to summary
public void setBlendMode(TiledMapTile.BlendMode blendMode)

Sets the BlendMode to use for rendering the tile

Parameters
blendMode:TiledMapTile.BlendMode

the blend mode to use for rendering the tile

setIdback to summary
public void setId(int id)
setOffsetXback to summary
public void setOffsetX(float offsetX)

Set the amount to offset the x position when rendering the tile

setOffsetYback to summary
public void setOffsetY(float offsetY)

Set the amount to offset the y position when rendering the tile

setTextureRegionback to summary
public void setTextureRegion(TextureRegion textureRegion)

Sets the texture region used to render the tile

com.badlogic.gdx.maps.tiled back to summary

public final Enum TiledMapTile.BlendMode

extends Enum<TiledMapTile.BlendMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final TiledMapTile.BlendMode
public static final TiledMapTile.BlendMode

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TiledMapTile.BlendMode
public static TiledMapTile.BlendMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALPHAback to summary
public static final TiledMapTile.BlendMode ALPHA
NONEback to summary
public static final TiledMapTile.BlendMode NONE

Constructor Detail

BlendModeback to summary
private BlendMode()

Method Detail

valueOfback to summary
public static TiledMapTile.BlendMode valueOf(String name)
valuesback to summary
public static TiledMapTile.BlendMode[] values()