Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.meowers.cide.data
Class TileSet  view TileSet download TileSet.java

java.lang.Object
  extended byorg.meowers.cide.data.GameObject
      extended byorg.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%

Field Summary
private  java.util.HashSet tiles
           
 
Fields inherited from class org.meowers.cide.data.GameObject
dirty, GAME_DATA, MAP, MAX_TYPE, name, TILE, TILE_SET, type
 
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.
 
Methods inherited from class org.meowers.cide.data.GameObject
getName, getType, isDirty, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tiles

private java.util.HashSet tiles
Constructor Detail

TileSet

public TileSet()
Creates new TileSet

Method Detail

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.