public class TiledMapTileSets extends java.lang.Object implements java.lang.Iterable<TiledMapTileSet>
| Constructor and Description |
|---|
TiledMapTileSets()
Creates an empty collection of tilesets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTileSet(TiledMapTileSet tileset) |
TiledMapTile |
getTile(int id) |
TiledMapTileSet |
getTileSet(int index) |
TiledMapTileSet |
getTileSet(java.lang.String name) |
java.util.Iterator<TiledMapTileSet> |
iterator() |
void |
removeTileSet(int index)
Removes tileset at index
|
void |
removeTileSet(TiledMapTileSet tileset) |
public TiledMapTileSets()
public TiledMapTileSet getTileSet(int index)
index - index to get the desired TiledMapTileSet at.public TiledMapTileSet getTileSet(java.lang.String name)
name - Name of the TiledMapTileSet to retrieve.public void addTileSet(TiledMapTileSet tileset)
tileset - set to be added to the collectionpublic void removeTileSet(int index)
index - index at which to remove a tileset.public void removeTileSet(TiledMapTileSet tileset)
tileset - set to be removedpublic TiledMapTile getTile(int id)
id - id of the TiledMapTile to get.public java.util.Iterator<TiledMapTileSet> iterator()
iterator in interface java.lang.Iterable<TiledMapTileSet>