public Ship(ShipDirection direction, int size, BoardCoordinates position) { this.Direction = direction; this.Size = size; this.Position = position; }
public Battleship(ShipDirection direction, BoardCoordinates position, IConstants constants) : base(direction, 1, position) { _constants = constants; this.Size = _constants.BattleshipLength; }
public Destroyer(ShipDirection direction, BoardCoordinates position, IConstants constants) : base(direction, 1, position) { _constants = constants; this.Size = _constants.DestroyerLength; }