Exemple #1
0
 public static void main(String[] args) {
   Directions.instance();
   int d = Directions.NORTH;
   {
     draw(new BoxCityLayout(), 25, d);
     draw(new BoxCityLayout(), 50, d);
     draw(new BoxCityLayout(), 100, d);
     draw(new BoxCitySquareLayout(), 25, d);
     draw(new BoxCitySquareLayout(), 50, d);
     draw(new BoxCitySquareLayout(), 100, d);
     draw(new CrossLayout(), 25, d);
     draw(new CrossLayout(), 50, d);
     draw(new CrossLayout(), 100, d);
     draw(new GridCityLayout(), 25, d);
     draw(new GridCityLayout(), 50, d);
     draw(new GridCityLayout(), 100, d);
     draw(new MazeLayout(), 25, d);
     draw(new MazeLayout(), 50, d);
     draw(new MazeLayout(), 100, d);
     draw(new TreeLayout(), 25, d);
     draw(new TreeLayout(), 50, d);
     draw(new TreeLayout(), 100, d);
   }
 }