com.badlogic.gdx.maps.tiled
Class TiledMapTileSet

java.lang.Object
  extended by com.badlogic.gdx.maps.tiled.TiledMapTileSet
All Implemented Interfaces:
Iterable<TiledMapTile>

public class TiledMapTileSet
extends Object
implements Iterable<TiledMapTile>


Constructor Summary
TiledMapTileSet()
          Creates empty tileset
 
Method Summary
 String getName()
           
 MapProperties getProperties()
           
 TiledMapTile getTile(int 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TiledMapTileSet

public TiledMapTileSet()
Creates empty tileset

Method Detail

getName

public String getName()
Returns:
tileset's name

setName

public void setName(String name)
Parameters:
name - new name for the tileset

getProperties

public MapProperties getProperties()
Returns:
tileset's properties set

getTile

public TiledMapTile getTile(int id)
Parameters:
id -
Returns:
tile matching id, null if it doesn't exist

iterator

public Iterator<TiledMapTile> iterator()
Specified by:
iterator in interface Iterable<TiledMapTile>
Returns:
iterator to tiles in this tileset

putTile

public void putTile(int id,
                    TiledMapTile tile)
Adds or replaces tile with that id

Parameters:
id -
tile -

removeTile

public void removeTile(int id)
Parameters:
id - tile's id to be removed

size

public int size()


Copyright © 2013. All Rights Reserved.