Descent.Model.Board.Board.Board C# (CSharp) Method

Board() public method

Initializes a new instance of the Board class.
public Board ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D floorTexture ) : System
width int /// The width of the board ///
height int /// The height of the board ///
floorTexture Microsoft.Xna.Framework.Graphics.Texture2D /// The floor Texture. ///
return System
        public Board(int width, int height, Texture2D floorTexture)
        {
            Contract.Requires(width > 1 && height > 1);
            bounds = new Rectangle(0, 0, width, height);
            board = new Square[width, height];
            canSpawn = new bool[width, height];
            this.floorTexture = floorTexture;
            revealedAreas.Add(0);
        }