Battlefield.Logic.Fields.Field.Field C# (CSharp) Method

Field() public method

public Field ( int size, int numberOfBombs ) : System.Collections.Generic
size int
numberOfBombs int
return System.Collections.Generic
        public Field(int size, int numberOfBombs)
        {
            this.Size = size;
            this.Grid = new Cell[size, size];
            this.FillFieldWithEmptyCells();
            this.NumberOfBombs = numberOfBombs;
            this.PlaceBombs(numberOfBombs);
        }