public void SetFormationRow(Ship selectedShip, uint amountOfShips, uint rowPosition) { if (rowPosition < 6) { Rows[rowPosition] = new FormationRow(selectedShip, amountOfShips); } else { throw new Exception("Invalid Row Position"); } }
public BattleFormation(string name) { Name = name; Rows = new FormationRow[6]; }