Ejemplo n.º 1
0
 /// <summary>
 /// Module responsible for sorting information from the StarCraft II client and notifying listeners.
 /// </summary>
 /// <param name="gameClient"></param>
 public IntelManager(IRawManager rawManager, ILogger logger, IUnitTypeRepository unitTypeRepository, IUpgradeRepository upgradeRepository, IGameMap map)
 {
     this.unitTypeRepository = unitTypeRepository;
     this.upgradeRepository  = upgradeRepository;
     this.rawManager         = rawManager;
     this.GameMap            = (GameMap)map;
     log = logger;
 }
Ejemplo n.º 2
0
 public ProductionManager(IRawManager rawManager, IIntelManager intelManager, IUnitTypeRepository unitTypeRepository, ITechTree techTree, IUpgradeRepository upgradeRepository, ILogger logger)
 {
     this.rawManager         = rawManager;
     this.intelManager       = intelManager;
     this.unitTypeRepository = unitTypeRepository;
     this.techTree           = techTree;
     this.log = logger;
     this.upgradeRepository = upgradeRepository;
 }
Ejemplo n.º 3
0
 public AVStrategy(IAbathur abathur, IIntelManager intelManager, ICombatManager combatManager,
                   IProductionManager productionManager, ISquadRepository squadRepo, IRawManager rawManager)
 {
     this.abathur           = abathur;
     this.intelManager      = intelManager;
     this.combatManager     = combatManager;
     this.productionManager = productionManager;
     this.squadRepo         = squadRepo;
     this.rawManager        = rawManager;
 }
Ejemplo n.º 4
0
 public EconomyModule(StateSnapshot snapshot,
                      IIntelManager intelManager, IProductionManager productionManager,
                      ICombatManager combatManager, IRawManager rawManager)
 {
     this.state             = snapshot;
     this.intelManager      = intelManager;
     this.productionManager = productionManager;
     this.combatManager     = combatManager;
     this.rawManager        = rawManager;
 }
Ejemplo n.º 5
0
 public Abathur(ILogger logger, IIntelManager intelManager, ICombatManager combatManager,
                IProductionManager productionManager, IRawManager rawManager, GameSettings gameSettings)
 {
     this.rawManager = rawManager;
     this.log        = logger;
     Settings        = gameSettings;
     CoreModules     = new List <IModule> {
         intelManager,
         combatManager,
         productionManager
     };
 }
Ejemplo n.º 6
0
 public AutoMapRotation(IRawManager rawManager, ILogger logger, GameSettings settings, IAbathur abathur, IIntelManager intelManager)
 {
     this.abathur      = abathur;
     this.rawManager   = rawManager;
     this.settings     = settings;
     this.intelManager = intelManager;
     this.log          = logger;
     maps = new List <string> {
         "Flooded City",
         "Deadlock Ridge",
         "Antiga Shipyard",
         "Arctic Gates",
         "Cinder Fortress",
         "Condemned Ridge",
         "Daybreak LE",
         "Desolate Stronghold",
         "Dig Site",
         "District 10",
         "Eastwatch LE",
         "Entombed Valley",
         "Forgotten Sanctuary",
         "Green Acres",
         "Last Remnant",
         "Lava Flow",
         "Lunar Colony V",
         "Magma Core",
         "Megaton",
         "Molten Crater",
         "Ohana LE",
         "Old Estate",
         "Outpost",
         "Overgrown Facility",
         "Sand Canyon",
         "Seeds of Aiur",
         "Silent Dunes",
         "Snowy Mesa",
         "Temple of the Preservers",
         "The Bio Lab",
         "The Boneyard",
         "The Ruins of Tarsonis",
         "Traitor's Exile",
         "Tropic Shores",
         "Tyrador Keep",
         "Cloud Kingdom LE"
     };
 }
Ejemplo n.º 7
0
 /// IModules can take any number of these in the constructor and in any order.
 /// It is all handled using Dependency Injection.
 public FullModule(ILogger log, IIntelManager intelManager, ICombatManager combatManager,
                   IProductionManager productionManager, IRawManager rawManager, IAbilityRepository abilityRepository,
                   IUnitTypeRepository unitTypeRepository, IUpgradeRepository upgradeRepository, IBuffRepository buffRepository,
                   ISquadRepository squadRepository, IGameMap gameMap, ITechTree techTree, GameSettings gameSettings)
 {
     this.log                = log;
     this.intelManager       = intelManager;
     this.combatManager      = combatManager;
     this.productionManager  = productionManager;
     this.rawManager         = rawManager;
     this.abilityRepository  = abilityRepository;
     this.unitTypeRepository = unitTypeRepository;
     this.upgradeRepository  = upgradeRepository;
     this.buffRepository     = buffRepository;
     this.squadRepository    = squadRepository;
     this.gameMap            = gameMap;
     this.techTree           = techTree;
 }
Ejemplo n.º 8
0
 public RawManagerService(IRawManager manager)
 {
     _manager = manager;
 }
Ejemplo n.º 9
0
 public AutoHarvestGather(IIntelManager intelManager, IRawManager rawManager)
 {
     this.intelManager = intelManager;
     this.rawManager   = rawManager;
 }
Ejemplo n.º 10
0
 public GameMap(IAbilityRepository abilityRepository, IUnitTypeRepository unitTypeRepository, IRawManager rawManager)
 {
     this.abilityRepository  = abilityRepository;
     this.unitTypeRepository = unitTypeRepository;
     this.rawManager         = rawManager;
 }
Ejemplo n.º 11
0
 public CombatManager(IIntelManager intelManager, IRawManager rawManager)
 {
     this.intelManager = intelManager;
     this.rawManager   = rawManager;
 }