public class TiledMapTileSet extends java.lang.Object implements java.lang.Iterable<TiledMapTile>
| Constructor and Description |
|---|
TiledMapTileSet()
Creates empty tileset
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
MapProperties |
getProperties() |
TiledMapTile |
getTile(int id)
Gets the
TiledMapTile that has the given id. |
java.util.Iterator<TiledMapTile> |
iterator() |
void |
putTile(int id,
TiledMapTile tile)
Adds or replaces tile with that id
|
void |
removeTile(int id) |
void |
setName(java.lang.String name) |
int |
size() |
public java.lang.String getName()
public void setName(java.lang.String name)
name - new name for the tilesetpublic MapProperties getProperties()
public TiledMapTile getTile(int id)
TiledMapTile that has the given id.id - the id of the TiledMapTile to retrieve.public java.util.Iterator<TiledMapTile> iterator()
iterator in interface java.lang.Iterable<TiledMapTile>public void putTile(int id,
TiledMapTile tile)
id - the id of the TiledMapTile to add or replace.tile - the TiledMapTile to add or replace.public void removeTile(int id)
id - tile's id to be removedpublic int size()