コード例 #1
0
ファイル: Cell.cs プロジェクト: kmania/leveldesigner
 public Cell(Map newMap, int column, int row, bool right, bool bottom)
 {
     this.map = newMap;
     this.x = column;
     this.y = row;
     this.rightBorder = (this.column == this.map.columns) ? false : right;
     this.bottomBorder = (this.row == this.map.rows) ? false : bottom;
 }
コード例 #2
0
ファイル: Presenter.cs プロジェクト: kmania/leveldesigner
        public Presenter(IView newView)
        {
            this.view = newView;
            this.map = new Map();

            this.squareSize = this.maxCellSize;

            // the starting corner for the walls of a cell
            this.wallStart = new Point[] { new Point(0, 0), new Point(this.squareSize, 0), new Point(this.squareSize, this.squareSize), new Point(0, this.squareSize) };
            this.wallEnd = new Point[] { new Point(this.squareSize, 0), new Point(0, this.squareSize), new Point(-this.squareSize, 0), new Point(0, -this.squareSize) }; // where the end of the line is based on the start of the line
        }
コード例 #3
0
ファイル: Cell.cs プロジェクト: kmania/leveldesigner
 public Cell(Map newMap, int column, int row)
 {
     this.map = newMap;
     this.x = column;
     this.y = row;
 }