Constructor and Description |
---|
TileLayer() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String propertyName)
Returns if the layer contains the specified property
|
String |
getName()
Returns the name of this layer
|
String |
getProperty(String propertyName)
Returns the value of a specified property
|
int |
getTileId(int x,
int y)
Returns the tile id at a given coordinate on the layer
|
void |
setDimensions(int width,
int height)
Sets the dimensions of this layer
|
void |
setName(String name)
Sets the name of this layer
|
void |
setProperty(String propertyName,
String value)
Sets the value of a specified property
|
void |
setTileId(int x,
int y,
int id)
Sets the tile id at a given coordinate on the layer
|
public boolean containsProperty(String propertyName)
propertyName
- The property name to search forpublic String getProperty(String propertyName)
propertyName
- The property name to search forpublic void setProperty(String propertyName, String value)
propertyName
- The property name to set the value forvalue
- The value of the property to setpublic String getName()
public void setName(String name)
name
- The name to setpublic int getTileId(int x, int y)
x
- The x coordinate in tilesy
- The y coordinate in tilespublic void setTileId(int x, int y, int id)
x
- The x coordinate in tilesy
- The y coordinate in tilesid
- 0 if there is no tilepublic void setDimensions(int width, int height)
width
- The width in tilesheight
- The height in tilesCopyright © 2014. All rights reserved.