public class StaticTiledMapTile extends java.lang.Object implements TiledMapTile
TiledMapTile.BlendMode| Constructor and Description |
|---|
StaticTiledMapTile(StaticTiledMapTile copy)
Copy constructor
|
StaticTiledMapTile(TextureRegion textureRegion)
Creates a static tile with the given region
|
| Modifier and Type | Method and Description |
|---|---|
TiledMapTile.BlendMode |
getBlendMode() |
int |
getId() |
float |
getOffsetX() |
float |
getOffsetY() |
MapProperties |
getProperties() |
TextureRegion |
getTextureRegion() |
void |
setBlendMode(TiledMapTile.BlendMode blendMode)
Sets the
TiledMapTile.BlendMode to use for rendering the tile |
void |
setId(int id) |
void |
setOffsetX(float offsetX)
Set the amount to offset the x position when rendering the tile
|
void |
setOffsetY(float offsetY)
Set the amount to offset the y position when rendering the tile
|
void |
setTextureRegion(TextureRegion textureRegion)
Sets the texture region used to render the tile
|
public StaticTiledMapTile(TextureRegion textureRegion)
textureRegion - the TextureRegion to use.public StaticTiledMapTile(StaticTiledMapTile copy)
copy - the StaticTiledMapTile to copy.public int getId()
getId in interface TiledMapTilepublic void setId(int id)
setId in interface TiledMapTilepublic TiledMapTile.BlendMode getBlendMode()
getBlendMode in interface TiledMapTileTiledMapTile.BlendMode to use for rendering the tilepublic void setBlendMode(TiledMapTile.BlendMode blendMode)
TiledMapTileTiledMapTile.BlendMode to use for rendering the tilesetBlendMode in interface TiledMapTileblendMode - the blend mode to use for rendering the tilepublic MapProperties getProperties()
getProperties in interface TiledMapTilepublic TextureRegion getTextureRegion()
getTextureRegion in interface TiledMapTilepublic void setTextureRegion(TextureRegion textureRegion)
TiledMapTilesetTextureRegion in interface TiledMapTilepublic float getOffsetX()
getOffsetX in interface TiledMapTilepublic void setOffsetX(float offsetX)
TiledMapTilesetOffsetX in interface TiledMapTilepublic float getOffsetY()
getOffsetY in interface TiledMapTilepublic void setOffsetY(float offsetY)
TiledMapTilesetOffsetY in interface TiledMapTile