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; }
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 }
public Cell(Map newMap, int column, int row) { this.map = newMap; this.x = column; this.y = row; }