Ejemplo n.º 1
0
 public BattleshipController(
     IBoardGenerator boardGenerator,
     IShipsGenerator shipsGenerator,
     IBoardCache boardCache,
     IFieldToPointConverter fieldToPointConverter)
 {
     this.boardGenerator        = boardGenerator;
     this.shipsGenerator        = shipsGenerator;
     this.boardCache            = boardCache;
     this.fieldToPointConverter = fieldToPointConverter;
 }
 public BattleshipController(
     IEmptyBoardGenerator emptyBoardGenerator,
     IBoardSaver boardSaver,
     IFieldToPointConverter fieldToPointConverter,
     IShipsGenerator shipsGenerator,
     IBoardWithShipsGenerator boardWithShipsGenerator)
 {
     this.emptyBoardGenerator    = emptyBoardGenerator;
     this.boardSaver             = boardSaver;
     this.fieldToPointConverter  = fieldToPointConverter;
     this.shipsGenerator         = shipsGenerator;
     this.boardWithShipsGenrator = boardWithShipsGenerator;
 }
Ejemplo n.º 3
0
 public void Construct(IShipsGenerator generator)
 {
     _generator = generator;
 }