public class Tile
extends java.lang.Object
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 |
draw(Graphics g,
int renderX,
int renderY) |
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() |
TextureRegion |
getTileImage() |
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Sets the value of a specified property
|
void |
setTileId(int tileId) |
void |
setTileImage(TextureRegion tileImage) |
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
public int getTileId()
public void setTileId(int tileId)
public TextureRegion getTileImage()
public void setTileImage(TextureRegion tileImage)