Exemplo n.º 1
0
 public void Reset(int newWidth, int newHeight)
 {
     Width     = newWidth;
     Height    = newHeight;
     Positions = new IntentionTiles[newWidth, newHeight];
     for (var x = 0; x < Width; x++)
     {
         for (var y = 0; y < Height; y++)
         {
             Positions[x, y]   = new IntentionTiles();
             Positions[x, y].X = x;
             Positions[x, y].Y = y;
         }
     }
 }
Exemplo n.º 2
0
 public IntentionGrid(int width, int height)
 {
     Width     = width;
     Height    = height;
     Positions = new IntentionTiles[width, height];
     for (var x = 0; x < Width; x++)
     {
         for (var y = 0; y < Height; y++)
         {
             Positions[x, y]   = new IntentionTiles();
             Positions[x, y].X = x;
             Positions[x, y].Y = y;
         }
     }
 }