public class TiledMapTileMapObject extends TextureMapObject
MapObject
with a TiledMapTile
. Can be both StaticTiledMapTile
or AnimatedTiledMapTile
. For
compatibility reasons, this extends TextureMapObject
. Use TiledMapTile.getTextureRegion()
instead of
TextureMapObject.getTextureRegion()
.Constructor and Description |
---|
TiledMapTileMapObject(TiledMapTile tile,
boolean flipHorizontally,
boolean flipVertically) |
Modifier and Type | Method and Description |
---|---|
TiledMapTile |
getTile() |
boolean |
isFlipHorizontally() |
boolean |
isFlipVertically() |
void |
setFlipHorizontally(boolean flipHorizontally) |
void |
setFlipVertically(boolean flipVertically) |
void |
setTile(TiledMapTile tile) |
getOriginX, getOriginY, getRotation, getScaleX, getScaleY, getTextureRegion, getX, getY, setOriginX, setOriginY, setRotation, setScaleX, setScaleY, setTextureRegion, setX, setY
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
public TiledMapTileMapObject(TiledMapTile tile, boolean flipHorizontally, boolean flipVertically)
public boolean isFlipHorizontally()
public void setFlipHorizontally(boolean flipHorizontally)
public boolean isFlipVertically()
public void setFlipVertically(boolean flipVertically)
public TiledMapTile getTile()
public void setTile(TiledMapTile tile)
Copyright © 2017. All rights reserved.