com.badlogic.gdx.maps.tiled.tiles
Class StaticTiledMapTile
java.lang.Object
com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
- All Implemented Interfaces:
- TiledMapTile
public class StaticTiledMapTile
- extends Object
- implements TiledMapTile
StaticTiledMapTile
public StaticTiledMapTile(TextureRegion textureRegion)
- Creates a static tile with the given region
- Parameters:
textureRegion
-
StaticTiledMapTile
public StaticTiledMapTile(StaticTiledMapTile copy)
- Copy constructor
- Parameters:
copy
-
getId
public int getId()
- Specified by:
getId
in interface TiledMapTile
setId
public void setId(int id)
- Specified by:
setId
in interface TiledMapTile
getBlendMode
public TiledMapTile.BlendMode getBlendMode()
- Specified by:
getBlendMode
in interface TiledMapTile
- Returns:
- the
TiledMapTile.BlendMode
to use for rendering the tile
setBlendMode
public void setBlendMode(TiledMapTile.BlendMode blendMode)
- Description copied from interface:
TiledMapTile
- Sets the
TiledMapTile.BlendMode
to use for rendering the tile
- Specified by:
setBlendMode
in interface TiledMapTile
- Parameters:
blendMode
- the blend mode to use for rendering the tile
getProperties
public MapProperties getProperties()
- Specified by:
getProperties
in interface TiledMapTile
- Returns:
- tile's properties set
getTextureRegion
public TextureRegion getTextureRegion()
- Specified by:
getTextureRegion
in interface TiledMapTile
- Returns:
- texture region used to render the tile
Copyright © 2013. All Rights Reserved.