Пример #1
0
 public PlayerViewGameBoard(string[] vs) : base(vs)
 {
     for (int i = 0; i < Height; i++)
     {
         BlockDetails.Add(new List <string>());
         for (int j = 0; j < Width; j++)
         {
             BlockDetails[i].Add(null);
         }
     }
 }
Пример #2
0
 PlayerViewGameBoard(int w, int h) : base(w, h)
 {
     for (int i = 0; i < Height; i++)
     {
         BlockDetails.Add(new List <string>());
         for (int j = 0; j < Width; j++)
         {
             BlockDetails[i].Add(null);
             Blocks[i][j] = GameBoardBlock.Unknown;
         }
     }
     BlockRangeChanged?.Invoke(0, 0, Height - 1, Width - 1);
 }