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