Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameField" /> class.
 /// </summary>
 /// <param name="size">Size of the field.</param>
 /// <param name="gridData">The grid data.</param>
 public GameField(Size size, CellType[][] gridData)
 {
     Size = size;
     GridData = gridData;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameSettings"/> class.
 /// </summary>
 public GameSettings()
 {
     Size = new Size();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameField"/> class.
 /// </summary>
 /// <param name="size">Size of the field.</param>
 public GameField(Size size)
 {
     Size = size;
     InitializeGrid();
 }