|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.molwind.view.Tiles
public class Tiles
Tiles generates and manages the image tiles served to the client.
Method Summary | |
---|---|
void |
addTile(LayeredPosition position,
Tile tile)
Adds a tile to the tile cache. |
static Tiles |
getInstance(java.lang.String worldName)
Returns an instance to the tiles storage which has been associated to the given world. |
Tile |
getTile(LayeredPosition position)
Returns a tile from the tile cache for the given position. |
MolwindWorld |
getWorld()
Get the World value. |
java.lang.String |
getWorldName()
Get the WorldName value. |
void |
setWorld(MolwindWorld newWorld)
Set the World value. |
void |
setWorldName(java.lang.String newWorldName)
Set the WorldName value. |
void |
writeTile(LayeredPosition position,
java.io.OutputStream output)
Writes the image of a tile for the given position to an output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Tiles getInstance(java.lang.String worldName) throws java.io.IOException
worldName
- the name of the world
java.io.IOException
- is thrown upon i/o errorpublic java.lang.String getWorldName()
public void setWorldName(java.lang.String newWorldName)
newWorldName
- the new WorldName valuepublic MolwindWorld getWorld()
public void setWorld(MolwindWorld newWorld)
newWorld
- the new World valuepublic Tile getTile(LayeredPosition position)
position
- the layered position (X,Y,L)
public void addTile(LayeredPosition position, Tile tile)
position
- the layered position (X,Y,L)tile
- the tile to be storedpublic void writeTile(LayeredPosition position, java.io.OutputStream output) throws java.io.IOException
position
- the position (X,Y,L)output
- the output stream
java.io.IOException
- is thrown upon i/o error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |