|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.World
Simulated world.
It has his Engine, his Map,
his Drawing interface, his Nature,and his Elements.
| Field Summary | |
Drawing |
drawing
The drawing interface associated with this world. |
Engine |
engine
The engine associated with this world. |
Map |
map
The map associated with this world. |
Nature |
nature
The Nature associated with this world. |
| Constructor Summary | |
World()
Default world |
|
World(Engine engine,
Map map,
Nature nature,
Drawing drawing,
java.lang.String name,
java.lang.String comments)
Constructs a World with an engine a map a drawing and a nature. |
|
| Method Summary | |
void |
draw()
Draws some things of the world. |
java.lang.String |
getComments()
Returns the comments. |
java.util.TreeMap |
getElements()
Elements of the world. |
java.lang.String |
getName()
Returns the name. |
java.lang.String[][] |
getProperties()
Returns the properties of the world |
Element |
id2element(java.lang.Integer id)
Returns the elements corresponding to the ID and null if the ID is not attributed. |
protected java.lang.Integer |
register(Element el)
Registers an element and returns its new ID. |
void |
setProperties(java.lang.String s1,
java.lang.String s2)
Try to sets the value to the property of the world. |
protected void |
unregister(Element el)
Unregisters an element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final Engine engine
public final Drawing drawing
public final Map map
public final Nature nature
| Constructor Detail |
public World(Engine engine,
Map map,
Nature nature,
Drawing drawing,
java.lang.String name,
java.lang.String comments)
public World()
| Method Detail |
public java.lang.String getName()
public java.lang.String getComments()
public void draw()
public java.util.TreeMap getElements()
protected java.lang.Integer register(Element el)
Element.
protected void unregister(Element el)
Element.death()).
public Element id2element(java.lang.Integer id)
public java.lang.String[][] getProperties()
Engine.getProperties()
public void setProperties(java.lang.String s1,
java.lang.String s2)
s1 - the property to change.s2 - the new value for the property.Engine.setProperties(java.lang.String, java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||