Back to index

plt-scheme  4.2.1
World.java
Go to the documentation of this file.
00001 package graphics;
00002 
00003 public abstract class World {
00004 
00005   public View display;
00006 
00007   World(View v) {
00008      display = v;
00009   }
00010 
00011   //Produce a World with the effects of receiving the given key
00012   public abstract World onKey( String key );
00013 
00014   //Produce a World with the effects of one clock tick passing
00015   public abstract World onTick();
00016 
00017   //Produces a World that will animate with a clock tick of rate
00018   public abstract boolean animate( int width, int height, int rate );
00019 
00020   public abstract Image draw();
00021 
00022   public abstract Image erase();
00023 
00024 }
00025