public class Tile
extends java.lang.Object
implements com.badlogic.gdx.utils.Disposable
Constructor and Description |
---|
Tile() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(java.lang.String propertyName)
Returns if the layer contains the specified property
|
void |
dispose() |
void |
draw(Graphics g,
int renderX,
int renderY) |
void |
draw(Graphics g,
int renderX,
int renderY,
boolean flipH,
boolean flipV,
boolean flipD) |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns the properties
Map of this Tile |
java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of a specified property
|
int |
getTileId()
Deprecated.
|
int |
getTileId(int firstGid) |
TileRenderer |
getTileRenderer() |
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Sets the value of a specified property
|
void |
setTileId(int tileId) |
void |
setTileRenderer(TileRenderer tileRenderer) |
void |
update(float delta) |
public void update(float delta)
public void draw(Graphics g, int renderX, int renderY, boolean flipH, boolean flipV, boolean flipD)
public void draw(Graphics g, int renderX, int renderY)
public boolean containsProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic java.lang.String getProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic void setProperty(java.lang.String propertyName, java.lang.String value)
propertyName
- The property name to set the value forvalue
- The value of the property to setpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
Map
of this Tile
@Deprecated public int getTileId()
public int getTileId(int firstGid)
public void setTileId(int tileId)
public TileRenderer getTileRenderer()
public void setTileRenderer(TileRenderer tileRenderer)
public void dispose()
dispose
in interface com.badlogic.gdx.utils.Disposable