public class TiledMapTileSets extends Object implements 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(String name) |
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(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 Iterator<TiledMapTileSet> iterator()
iterator
in interface Iterable<TiledMapTileSet>
Copyright © 2014. All rights reserved.