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