examples
Class GradientWorld

java.lang.Object
  extended bysema.World
      extended byexamples.GradientWorld

public class GradientWorld
extends World

We have to give the good constructor in order to have these world accepted by the interface.


Field Summary
 
Fields inherited from class sema.World
drawing, engine, map, nature
 
Constructor Summary
GradientWorld(Engine engine, Map map, Nature nature, Drawing drawing, java.lang.String name, java.lang.String comments)
          Needed constuctor
 
Method Summary
 void draw()
          Draws some things of the world.
 
Methods inherited from class sema.World
getComments, getElements, getName, getProperties, id2element, register, setProperties, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientWorld

public GradientWorld(Engine engine,
                     Map map,
                     Nature nature,
                     Drawing drawing,
                     java.lang.String name,
                     java.lang.String comments)
Needed constuctor

Method Detail

draw

public void draw()
Description copied from class: World
Draws some things of the world.

Overrides:
draw in class World