Minesweeper.Core.Minefield.Minefield C# (CSharp) Method

Minefield() public method

public Minefield ( int width, int height ) : System
width int
height int
return System
        public Minefield(int width, int height)
        {
            Width = width;
            Height = height;

            m_mineAreas = new IMineArea[width,height];

            for (int i = 0; i < width; i++)
                for (int j = 0; j < height; j++)
                    m_mineAreas[i, j] = new MineArea(j, i);
        }