TiledMapTile.
| Modifier and Type | Field and Description |
|---|---|
| private int[] | |
| private TiledMapTile. | |
| private StaticTiledMapTile[] | |
| private int | |
| private static final long | |
| private static long | |
| private int | |
| private MapObjects | |
| private MapProperties |
| Access | Constructor and Description |
|---|---|
| public | AnimatedTiledMapTile(float
The interval between each individual frame tile. interval, Array<StaticTiledMapTile> An array of frameTiles)StaticTiledMapTiles that make up the animation.Creates an animated tile with the given animation interval and frame tiles. |
| public | AnimatedTiledMapTile(IntArray
The intervals between each individual frame tile in milliseconds. intervals, Array<StaticTiledMapTile> An array of frameTiles)StaticTiledMapTiles that make up the animation.Creates an animated tile with the given animation intervals and frame tiles. |
| Modifier and Type | Method and Description |
|---|---|
| public int[] | |
| public TiledMapTile. | |
| public TiledMapTile | |
| public int | |
| public StaticTiledMapTile[] | |
| public int | |
| public MapObjects | |
| public float | |
| public float | |
| public MapProperties | |
| public TextureRegion | |
| public void | |
| public void | setBlendMode(TiledMapTile.
Implements com. Sets the |
| public void | |
| public void | setOffsetX(float offsetX)
Implements com. Set the amount to offset the x position when rendering the tile |
| public void | setOffsetY(float offsetY)
Implements com. Set the amount to offset the y position when rendering the tile |
| public void | setTextureRegion(TextureRegion textureRegion)
Implements com. Sets the texture region used to render the tile |
| public 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() |
| animationIntervals | back to summary |
|---|---|
| private int[] animationIntervals | |
| blendMode | back to summary |
|---|---|
| private TiledMapTile. | |
| frameTiles | back to summary |
|---|---|
| private StaticTiledMapTile[] frameTiles | |
| id | back to summary |
|---|---|
| private int id | |
| initialTimeOffset | back to summary |
|---|---|
| private static final long initialTimeOffset | |
| lastTiledMapRenderTime | back to summary |
|---|---|
| private static long lastTiledMapRenderTime | |
| loopDuration | back to summary |
|---|---|
| private int loopDuration | |
| objects | back to summary |
|---|---|
| private MapObjects objects | |
| properties | back to summary |
|---|---|
| private MapProperties properties | |
| AnimatedTiledMapTile | back to summary |
|---|---|
| public AnimatedTiledMapTile(float interval, Array<StaticTiledMapTile> frameTiles) Creates an animated tile with the given animation interval and frame tiles.
| |
| AnimatedTiledMapTile | back to summary |
|---|---|
| public AnimatedTiledMapTile(IntArray intervals, Array<StaticTiledMapTile> frameTiles) Creates an animated tile with the given animation intervals and frame tiles.
| |
| getAnimationIntervals | back to summary |
|---|---|
| public int[] getAnimationIntervals() | |
| getBlendMode | back to summary |
|---|---|
| public TiledMapTile. Implements com.
| |
| getCurrentFrame | back to summary |
|---|---|
| public TiledMapTile getCurrentFrame() | |
| getCurrentFrameIndex | back to summary |
|---|---|
| public int getCurrentFrameIndex() | |
| getFrameTiles | back to summary |
|---|---|
| public StaticTiledMapTile[] getFrameTiles() | |
| getId | back to summary |
|---|---|
| public int getId() Implements com.
| |
| getObjects | back to summary |
|---|---|
| public MapObjects getObjects() Implements com.
| |
| getOffsetX | back to summary |
|---|---|
| public float getOffsetX() Implements com.
| |
| getOffsetY | back to summary |
|---|---|
| public float getOffsetY() Implements com.
| |
| getProperties | back to summary |
|---|---|
| public MapProperties getProperties() Implements com.
| |
| getTextureRegion | back to summary |
|---|---|
| public TextureRegion getTextureRegion() Implements com.
| |
| setAnimationIntervals | back to summary |
|---|---|
| public void setAnimationIntervals(int[] intervals) | |
| setBlendMode | back to summary |
|---|---|
| public void setBlendMode(TiledMapTile. Implements com. Doc from com. Sets the
| |
| setId | back to summary |
|---|---|
| public void setId(int id) Implements com.
| |
| setOffsetX | back to summary |
|---|---|
| public void setOffsetX(float offsetX) Implements com. Doc from com. Set the amount to offset the x position when rendering the tile
| |
| setOffsetY | back to summary |
|---|---|
| public void setOffsetY(float offsetY) Implements com. Doc from com. Set the amount to offset the y position when rendering the tile
| |
| setTextureRegion | back to summary |
|---|---|
| public void setTextureRegion(TextureRegion textureRegion) Implements com. Doc from com. Sets the texture region used to render the tile
| |
| updateAnimationBaseTime | back to summary |
|---|---|
| public 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() | |