APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.maps.tiled.tiles

public Class StaticTiledMapTile

extends Object
implements TiledMapTile
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.maps.tiled.TiledMapTile
Imports
com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.maps.MapObjects, .MapProperties, com.badlogic.gdx.maps.tiled.TiledMapTile

@brief Represents a non changing TiledMapTile (can be cached)

Field Summary

Modifier and TypeField and Description
private TiledMapTile.BlendMode
private int
private MapObjects
private float
private float
private MapProperties
private TextureRegion

Constructor Summary

AccessConstructor and Description
public
StaticTiledMapTile(TextureRegion
the TextureRegion to use.
textureRegion
)

Creates a static tile with the given region

public
StaticTiledMapTile(StaticTiledMapTile
the StaticTiledMapTile to copy.
copy
)

Copy constructor

Method Summary

Modifier and TypeMethod and Description
public TiledMapTile.BlendMode
public int
public MapObjects
public float
public float
public MapProperties
public TextureRegion
public void
setBlendMode(TiledMapTile.BlendMode blendMode)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setBlendMode.

Sets the BlendMode to use for rendering the tile

public void
public void
setOffsetX(float offsetX)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetX.

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

public void
setOffsetY(float offsetY)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetY.

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

public void
setTextureRegion(TextureRegion textureRegion)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setTextureRegion.

Sets the texture region used to render the tile

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blendModeback to summary
private TiledMapTile.BlendMode blendMode
idback to summary
private int id
objectsback to summary
private MapObjects objects
offsetXback to summary
private float offsetX
offsetYback to summary
private float offsetY
propertiesback to summary
private MapProperties properties
textureRegionback to summary
private TextureRegion textureRegion

Constructor Detail

StaticTiledMapTileback to summary
public StaticTiledMapTile(TextureRegion textureRegion)

Creates a static tile with the given region

Parameters
textureRegion:TextureRegion

the TextureRegion to use.

StaticTiledMapTileback to summary
public StaticTiledMapTile(StaticTiledMapTile copy)

Copy constructor

Parameters
copy:StaticTiledMapTile

the StaticTiledMapTile to copy.

Method Detail

getBlendModeback to summary
public TiledMapTile.BlendMode getBlendMode()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getBlendMode.

Annotations
@Override
getIdback to summary
public int getId()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getId.

Annotations
@Override
getObjectsback to summary
public MapObjects getObjects()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getObjects.

Annotations
@Override
getOffsetXback to summary
public float getOffsetX()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getOffsetX.

Annotations
@Override
getOffsetYback to summary
public float getOffsetY()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getOffsetY.

Annotations
@Override
getPropertiesback to summary
public MapProperties getProperties()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getProperties.

Annotations
@Override
getTextureRegionback to summary
public TextureRegion getTextureRegion()

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.getTextureRegion.

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

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setBlendMode.

Doc from com.badlogic.gdx.maps.tiled.TiledMapTile.setBlendMode.

Sets the BlendMode to use for rendering the tile

Annotations
@Override
setIdback to summary
public void setId(int id)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setId.

Annotations
@Override
setOffsetXback to summary
public void setOffsetX(float offsetX)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetX.

Doc from com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetX.

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

Annotations
@Override
setOffsetYback to summary
public void setOffsetY(float offsetY)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetY.

Doc from com.badlogic.gdx.maps.tiled.TiledMapTile.setOffsetY.

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

Annotations
@Override
setTextureRegionback to summary
public void setTextureRegion(TextureRegion textureRegion)

Implements com.badlogic.gdx.maps.tiled.TiledMapTile.setTextureRegion.

Doc from com.badlogic.gdx.maps.tiled.TiledMapTile.setTextureRegion.

Sets the texture region used to render the tile

Annotations
@Override