public MachinesManager() { this.pilots = new Dictionary <string, IPilot>(); this.machines = new Dictionary <string, IMachine>(); this.pilotFactory = new PilotFactory(); }
public MachinesManager(IMachineFactory machineFactory, IPilotFactory pilotFactory) { this.machines = new List <IMachine>(); this.pilots = new List <IPilot>(); this.machineFactory = machineFactory; this.pilotFactory = pilotFactory; }
public MachinesManager(IPilotRepository pilotRepository, IMachineRepository machineRepository, IPilotFactory pilotFactory, IMachineFactory machineFactory) { this.pilotRepository = pilotRepository; this.machineRepository = machineRepository; this.pilotFactory = pilotFactory; this.machineFactory = machineFactory; }
public MachinesManager() { pilotRepository = new PilotRepository(); machineRepository = new MachineRepository(); pilotFactory = new PilotFactory(); machineFactory = new MachineFactory(); }
public Engine(IMachinesManager warMachinesManager, IPilotFactory pilotFactory, IMachineFactory machineFactory) { this.machinesManager = warMachinesManager; this.pilotFactory = pilotFactory; this.machineFactory = machineFactory; this.commandInterpreter = new CommandInterpreter(); this.consoleReader = new ConsoleReader(); this.consoleWriter = new ConsoleWriter(); }
public MachinesManager( IPilotFactory pilotFactory, ITankFactory tankFactory, IFighterFactory fighterFactory) { this.pilotFactory = pilotFactory; this.tankFactory = tankFactory; this.fighterFactory = fighterFactory; this.pilots = new List <IPilot>(); this.machines = new List <IMachine>(); }