Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public Field(int width, int height)
        {
            Width  = width;
            Height = height;

            FieldBlocks = new Defs.Blocks[Height, Width];
            for (int y = 0; y < FieldBlocks.GetLength(0); ++y)
            {
                for (int x = 0, max = FieldBlocks.GetLength(1); x < max; ++x)
                {
                    FieldBlocks[y, x] = Defs.Blocks.EmptyField;
                }
            }

            BlocksList = new List <Defs.Blocks[, ]>();
        }