|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbe.saltwater.jaqel.maze.TileSet
A collection of tiles types, each with it own unique name. A maze has a reference to a tileset and each tile in the maze refers to tile type with its name. A TileSet can be loaded from a file with classes that implement TileSetLoader. At the moment, only XMLTileSetLoader is available.
Tile,
Maze| Constructor Summary | |
TileSet()
Constructs a new TileSet. |
|
TileSet(java.lang.String name)
Constructs a new TileSet. |
|
| Method Summary | |
void |
addTile(java.lang.String name,
Tile tile)
Add a tile to this tileset, this method has no effect if there is already a tile with the given name. |
java.lang.String |
getName()
Returns the name of this tileset. |
Tile |
getTile(java.lang.String name)
Returns the tile identified by the given name. |
static float |
getTileSize()
Returns the size of the visual representation (Shape3D) tile in this tileset. |
void |
setName(java.lang.String name)
Sets the name of this tileset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TileSet()
public TileSet(java.lang.String name)
name - The name for this tileset, it is passed to setName.setName| Method Detail |
public void setName(java.lang.String name)
getNamepublic java.lang.String getName()
setName
public void addTile(java.lang.String name,
Tile tile)
name - The unique name for the tile.tile - The tile that must be added.TileSetLoader,
Tilepublic Tile getTile(java.lang.String name)
name - The unique name for the tile.public static float getTileSize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||