Beispiel #1
0
  public void finishLimits( Limits l )
  {
   clr = l.clr;
   lyr = l.lyr;
   map = l.map;

  }
  private static void loadMaps()
  {
   Limits l = new Limits();

   int x;

   mnuStatus.Text = "Creating Map Storage";
   mnuLoad.Increment( -1 * hgt * wid );

   l.clr = new int[ wid ][];
   l.lyr = new int[ wid ][];
   l.map = new Block[ wid ][];

   for( x = 0; x < wid; x++ )
   {
    l.clr[ x ] = new int[ hgt ];
    l.lyr[ x ] = new int[ hgt ];
    l.map[ x ] = new Block[ hgt ];

    mnuLoad.Increment( hgt );
 
   }

   mnuLoad.Increment( -hgt * wid );
   mnuStatus.Text = "Not Loading";

   Tools.Tool.finishLimits( l );
 
  }
Beispiel #3
0
 public void finishLimits(Limits l)
 {
     clr = l.clr;
     lyr = l.lyr;
     map = l.map;
 }