Пример #1
0
        private void initMazeElements(int row, int column, int width, int height, Color color, eBounds bounds)
        {
            elements = new mazeElement[row, column];
            coords = new Point[row, column];

            for (int i = 0; i < row; i++)
            {
                for (int j = 0; j < column; j++)
                {
                    elements[i, j] = new mazeElement(width, height, color, bounds);
                    coords[i, j] = new Point(j * width, i * height);
                }
            }
        }
Пример #2
0
 public mazeElement(mazeElement element)
     : this(element.width, element.height, element.color, element.bounds)
 {
 }