com.badlogic.gdx.maps.tiled.tiles
Class StaticTiledMapTile

java.lang.Object
  extended by com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile
All Implemented Interfaces:
TiledMapTile

public class StaticTiledMapTile
extends Object
implements TiledMapTile


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.maps.tiled.TiledMapTile
TiledMapTile.BlendMode
 
Constructor Summary
StaticTiledMapTile(StaticTiledMapTile copy)
          Copy constructor
StaticTiledMapTile(TextureRegion textureRegion)
          Creates a static tile with the given region
 
Method Summary
 TiledMapTile.BlendMode getBlendMode()
           
 int getId()
           
 MapProperties getProperties()
           
 TextureRegion getTextureRegion()
           
 void setBlendMode(TiledMapTile.BlendMode blendMode)
          Sets the TiledMapTile.BlendMode to use for rendering the tile
 void setId(int id)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticTiledMapTile

public StaticTiledMapTile(TextureRegion textureRegion)
Creates a static tile with the given region

Parameters:
textureRegion -

StaticTiledMapTile

public StaticTiledMapTile(StaticTiledMapTile copy)
Copy constructor

Parameters:
copy -
Method Detail

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.