Example #1
0
 private static void ReviewPotentiallyOccupiedTiles(ref Tile[,] tiles, ICollection<TileException> exceptions)
 {
     var cy = tiles.GetLength(1);
     var cx = tiles.GetLength(0);
     for (int y = 0; y < cy; y++)
         {
         for (int x = 0; x < cx; x++)
             {
             Tile t = tiles[x, y];
             try
                 {
                 t.CheckIfIncorrectlyPotentiallyOccupied();
                 }
             catch (TileException te)
                 {
                 var nte = new TileException(te, string.Format("Tile at {0},{1}", x, y));
                 exceptions.Add(nte);
                 }
             }
         }
 }