Example #1
0
        public MachinesManager()
        {
            this.pilots   = new Dictionary <string, IPilot>();
            this.machines = new Dictionary <string, IMachine>();

            this.pilotFactory = new PilotFactory();
        }
Example #2
0
 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();
 }
Example #6
0
        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>();
        }