java.lang.Object
org.meowers.cide.data.GameObject
org.meowers.cide.data.TileSet
- All Implemented Interfaces:
- java.io.Serializable
- public class TileSet
- extends GameObject
Stores a collection of tiles for grouping purposes.
- Version:
- %I%, %G%
|
Constructor Summary |
TileSet()
Creates new TileSet |
|
Method Summary |
void |
addTile(Tile tile)
Adds a Tile to this TileSet. |
int |
getTileCount()
Returns the number of Tile objects in this set. |
Tile[] |
getTiles()
Returns an array containing all the tiles in this set. |
void |
removeTile(Tile tile)
Removes the specified tile from this set. |
tiles
private java.util.HashSet tiles
TileSet
public TileSet()
- Creates new TileSet
addTile
public void addTile(Tile tile)
- Adds a
Tile to this TileSet.
removeTile
public void removeTile(Tile tile)
- Removes the specified tile from this set.
getTiles
public Tile[] getTiles()
- Returns an array containing all the tiles in this set.
getTileCount
public int getTileCount()
- Returns the number of
Tile objects in this set.