|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molwind.view.AbstractTile
public abstract class AbstractTile
AbstractTile holds the entities visible on the tile.
| Constructor Summary | |
|---|---|
protected |
AbstractTile(LayeredPosition newPosition)
|
| Method Summary | |
|---|---|
void |
addEntities(java.util.Iterator it)
Adds entities to this tile. |
protected java.awt.image.BufferedImage |
getEmptyImage()
|
int |
getEntityCount()
Returns the number of entities on this tile. |
java.util.Iterator |
getEntityIterator()
Returns an iterator over the entities of this tile. |
java.lang.String |
getImageType()
Get the ImageType value. |
LayeredPosition |
getPosition()
Get the Position value. |
void |
setImageType(java.lang.String newImageType)
Set the ImageType value. |
void |
setPosition(LayeredPosition newPosition)
Set the Position value. |
abstract void |
writeTo(java.io.OutputStream output)
Writes the tile's image to the given output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractTile(LayeredPosition newPosition)
| Method Detail |
|---|
protected java.awt.image.BufferedImage getEmptyImage()
public java.lang.String getImageType()
public void setImageType(java.lang.String newImageType)
newImageType - the new ImageType value
public abstract void writeTo(java.io.OutputStream output)
throws java.io.IOException
writeTo in interface Tileoutput - the output stream
java.io.IOException - is thrown upon i/o errorpublic LayeredPosition getPosition()
public void setPosition(LayeredPosition newPosition)
newPosition - the new Position valuepublic void addEntities(java.util.Iterator it)
it - a collection of entitiespublic java.util.Iterator getEntityIterator()
public int getEntityCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||