public CommandCenter(ILandingSurface aLandingSurface, ICommandParser aCommandParser, ICommandInvoker aCommandInvoker, IReportComposer aReportComposer) { rovers = new List<IRover>(); landingSurface = aLandingSurface; commandParser = aCommandParser; commandInvoker = aCommandInvoker; reportComposer = aReportComposer; commandInvoker.SetLandingSurface(landingSurface); commandInvoker.SetRovers(rovers); }
public CommandMain(ISurface aLandingSurface, ICommandParser aCommandParser, ICommandInvoker aCommandInvoker, IReportComposer aReportComposer) { rovers = new List <IRover>(); landingSurface = aLandingSurface; commandParser = aCommandParser; commandInvoker = aCommandInvoker; reportComposer = aReportComposer; commandInvoker.SetLandingSurface(landingSurface); commandInvoker.SetRovers(rovers); }
public CommandCenter(ISurface _surface, ICommandParser _commandparser, ICommandInvoker _commandInvoker, IReportComposer _reportComposer) { pirate = new List <IPirate>(); surface = _surface; commandParser = _commandparser; commandInvoker = _commandInvoker; reportComposer = _reportComposer; commandInvoker.SetSurface(surface); commandInvoker.SetPirate(pirate); }
public CommandCenter(LandingSurface aLandingSurface, ParseCommands aCommandParser, CommandsInvoke aCommandInvoker, IReportComposer aReportComposer) { rovers = new List <MarsRover>(); landingSurface = aLandingSurface; commandParser = aCommandParser; commandInvoker = aCommandInvoker; reportComposer = aReportComposer; commandInvoker.SetLandingSurface(landingSurface); commandInvoker.SetRovers(rovers); }
public CommandFactory(IPlateau plateau, ICommandParser commandParser, ICommandInvoker commandInvoker, IReportComposer reportComposer) { _rovers = new List <IRover>(); _plateau = plateau; _commandParser = commandParser; _commandInvoker = commandInvoker; _reportComposer = reportComposer; _commandInvoker.SetPlateau(_plateau); _commandInvoker.SetRovers(_rovers); }