コード例 #1
0
ファイル: Board.cs プロジェクト: ashic/GameOfLife
        public Board(int width, int height, int boardPixelWidth)
        {
            _width = boardPixelWidth;

            _points = new BoardPoint[height][];
            for (int i = 0; i < height; i++)
            {
                _points[i] = new BoardPoint[width];
                for(int j=0; j<width; j++)
                    _points[i][j] = new BoardPoint();
            }
        }
コード例 #2
0
        public Board(int width, int height, int boardPixelWidth)
        {
            _width = boardPixelWidth;

            _points = new BoardPoint[height][];
            for (int i = 0; i < height; i++)
            {
                _points[i] = new BoardPoint[width];
                for (int j = 0; j < width; j++)
                {
                    _points[i][j] = new BoardPoint();
                }
            }
        }