| Constructor and Description |
|---|
TileLayer(int width,
int height) |
| 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
|
boolean |
isVisible() |
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
|
void |
setVisible(boolean visible) |
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 boolean isVisible()
public void setVisible(boolean visible)
Copyright © 2014. All rights reserved.