/// <summary> /// Clearship will remove the ship from the tile /// </summary> public void ClearShip() { _Ship = null; }
/// <summary> /// The tile constructor will know where it is on the grid, and is its a ship /// </summary> /// <param name="row">the row on the grid</param> /// <param name="col">the col on the grid</param> /// <param name="ship">what ship it is</param> public Tile(int row, int col, Ship ship) { _RowValue = row; _ColumnValue = col; _Ship = ship; }