Class TiledMapTileMapObject
- java.lang.Object
-
- com.badlogic.gdx.maps.MapObject
-
- com.badlogic.gdx.maps.objects.TextureMapObject
-
- com.badlogic.gdx.maps.tiled.objects.TiledMapTileMapObject
-
public class TiledMapTileMapObject extends TextureMapObject
AMapObject
with aTiledMapTile
. Can be bothStaticTiledMapTile
orAnimatedTiledMapTile
. For compatibility reasons, this extendsTextureMapObject
. UseTiledMapTile.getTextureRegion()
instead ofTextureMapObject.getTextureRegion()
.
-
-
Constructor Summary
Constructors Constructor Description TiledMapTileMapObject(TiledMapTile tile, boolean flipHorizontally, boolean flipVertically)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TiledMapTile
getTile()
boolean
isFlipHorizontally()
boolean
isFlipVertically()
void
setFlipHorizontally(boolean flipHorizontally)
void
setFlipVertically(boolean flipVertically)
void
setTile(TiledMapTile tile)
-
Methods inherited from class com.badlogic.gdx.maps.objects.TextureMapObject
getOriginX, getOriginY, getRotation, getScaleX, getScaleY, getTextureRegion, getX, getY, setOriginX, setOriginY, setRotation, setScaleX, setScaleY, setTextureRegion, setX, setY
-
Methods inherited from class com.badlogic.gdx.maps.MapObject
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
-
-
-
-
Constructor Detail
-
TiledMapTileMapObject
public TiledMapTileMapObject(TiledMapTile tile, boolean flipHorizontally, boolean flipVertically)
-
-
Method Detail
-
isFlipHorizontally
public boolean isFlipHorizontally()
-
setFlipHorizontally
public void setFlipHorizontally(boolean flipHorizontally)
-
isFlipVertically
public boolean isFlipVertically()
-
setFlipVertically
public void setFlipVertically(boolean flipVertically)
-
getTile
public TiledMapTile getTile()
-
setTile
public void setTile(TiledMapTile tile)
-
-