public class AnimatedTiledMapTile extends java.lang.Object implements TiledMapTile
TiledMapTile.BlendMode
Constructor and Description |
---|
AnimatedTiledMapTile(float interval,
Array<StaticTiledMapTile> frameTiles) |
Modifier and Type | Method and Description |
---|---|
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) |
static void |
updateAnimationBaseTime()
Function is called by BatchTiledMapRenderer render(), lastTiledMapRenderTime is used to keep all of the tiles in lock-step
animation and avoids having to call TimeUtils.millis() in getTextureRegion()
|
public AnimatedTiledMapTile(float interval, Array<StaticTiledMapTile> frameTiles)
public int getId()
getId
in interface TiledMapTile
public void setId(int id)
setId
in interface TiledMapTile
public TiledMapTile.BlendMode getBlendMode()
getBlendMode
in interface TiledMapTile
TiledMapTile.BlendMode
to use for rendering the tilepublic void setBlendMode(TiledMapTile.BlendMode blendMode)
TiledMapTile
TiledMapTile.BlendMode
to use for rendering the tilesetBlendMode
in interface TiledMapTile
blendMode
- the blend mode to use for rendering the tilepublic TextureRegion getTextureRegion()
getTextureRegion
in interface TiledMapTile
public MapProperties getProperties()
getProperties
in interface TiledMapTile
public static void updateAnimationBaseTime()