Package com.badlogic.gdx.maps.tiled
Interface TiledMapTile
-
- All Known Implementing Classes:
AnimatedTiledMapTile,StaticTiledMapTile
public interface TiledMapTile
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTiledMapTile.BlendMode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TiledMapTile.BlendModegetBlendMode()intgetId()MapObjectsgetObjects()floatgetOffsetX()floatgetOffsetY()MapPropertiesgetProperties()TextureRegiongetTextureRegion()voidsetBlendMode(TiledMapTile.BlendMode blendMode)Sets theTiledMapTile.BlendModeto use for rendering the tilevoidsetId(int id)voidsetOffsetX(float offsetX)Set the amount to offset the x position when rendering the tilevoidsetOffsetY(float offsetY)Set the amount to offset the y position when rendering the tilevoidsetTextureRegion(TextureRegion textureRegion)Sets the texture region used to render the tile
-
-
-
Method Detail
-
getId
int getId()
-
setId
void setId(int id)
-
getBlendMode
TiledMapTile.BlendMode getBlendMode()
- Returns:
- the
TiledMapTile.BlendModeto use for rendering the tile
-
setBlendMode
void setBlendMode(TiledMapTile.BlendMode blendMode)
Sets theTiledMapTile.BlendModeto use for rendering the tile- Parameters:
blendMode- the blend mode to use for rendering the tile
-
getTextureRegion
TextureRegion getTextureRegion()
- Returns:
- texture region used to render the tile
-
setTextureRegion
void setTextureRegion(TextureRegion textureRegion)
Sets the texture region used to render the tile
-
getOffsetX
float getOffsetX()
- Returns:
- the amount to offset the x position when rendering the tile
-
setOffsetX
void setOffsetX(float offsetX)
Set the amount to offset the x position when rendering the tile
-
getOffsetY
float getOffsetY()
- Returns:
- the amount to offset the y position when rendering the tile
-
setOffsetY
void setOffsetY(float offsetY)
Set the amount to offset the y position when rendering the tile
-
getProperties
MapProperties getProperties()
- Returns:
- tile's properties set
-
getObjects
MapObjects getObjects()
- Returns:
- collection of objects contained in the tile
-
-