/// <summary> /// Constructor /// Initialises a new Grid Cell with the expected parameters /// </summary> /// <param name="xref"></param> /// <param name="yref"></param> /// <param name="status"></param> public GridCell(int xref, string yref, GridCellStatus status) { Condition.Requires(xref).IsGreaterOrEqual(1); Condition.Requires(AlphabetHelper.GetAlphabetPositionOfLetter(yref)).IsGreaterOrEqual(1); XRef = xref; YRef = yref; Status = status; HorizontalBoatCapacity = 0; VerticalBoatCapacity = 0; }
public GridCell(int row, int column) { Coordinate = new Coordinate(row, column); Status = GridCellStatus.Empty; }