protected Ship(OrientationType orientation, GameField startField) { Orientation = orientation; StartField = startField ?? throw new ArgumentNullException(nameof(startField)); Fields = StartField.Expand(Orientation, Size); }
public ShotResult(GameField gameField, ShotResultType shotResultType, ShipType?shipType = null) { GameField = gameField; ShotResultType = shotResultType; ShipType = shipType; }
public Battleship(OrientationType orientation, GameField startField) : base(orientation, startField) { }
public Destroyer(OrientationType orientation, GameField startField) : base(orientation, startField) { }