Beispiel #1
0
		public Game( int width, int height )
		{
			radius = new Radius( this );
			plans = new Plans( this );
			frontier = new Frontier( this );

			this.width = width;
			this.height = height;

			grid = new Case[ width, height ];

			for ( int x = 0; x < width; x ++ )
				for ( int y = 0; y < height; y ++ )
					grid[ x, y ] = new Case( x, y );
		}
Beispiel #2
0
		public Game()
		{
			radius = new Radius( this );
			plans = new Plans( this );
			frontier = new Frontier( this );
		}