public class TiledMapTileSet extends Object implements Iterable<TiledMapTile>
Constructor and Description |
---|
TiledMapTileSet()
Creates empty tileset
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
MapProperties |
getProperties() |
TiledMapTile |
getTile(int id)
Gets the
TiledMapTile that has the given id. |
Iterator<TiledMapTile> |
iterator() |
void |
putTile(int id,
TiledMapTile tile)
Adds or replaces tile with that id
|
void |
removeTile(int id) |
void |
setName(String name) |
int |
size() |
public String getName()
public void setName(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 Iterator<TiledMapTile> iterator()
iterator
in interface 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()
Copyright © 2015. All rights reserved.