示例#1
0
 def __init__(self, base_location: Location):
     Commander.__init__(self)
     self.attack_orders = OrdersRepetition([
         # Constant Marauder and Marine
         TrainMarine(base_location, 4),
         TrainMarauder(base_location, 3),
         PushWithArmy(base_location)
     ])
示例#2
0
 def __init__(self, base_location: Location):
     Commander.__init__(self)
     self.base_location = base_location
     self.control_group_order = PrepareSCVControlGroupsOrder(base_location)
     self.fill_refinery_one_order = FillRefineryOnceBuilt(base_location, 1)
     self.fill_refinery_two_order = FillRefineryOnceBuilt(base_location, 2)
     self.idle_scv_to_mineral = SendIdleSCVToMineral(base_location)
     self.current_order = self.control_group_order
     self.extra_scv_to_build_orders = []
     self._plan_to_build_scv_mineral_harvesters(4)
     self.last_played_step = 0
     self.number_steps_between_order = 30
示例#3
0
 def __init__(self, base_location: Location, agent_name: str,
              enemy_detector: EnemyDetector):
     Commander.__init__(self)
     self.worker_commander = WorkerCommander(base_location)
     self.enemy_detector = enemy_detector
     self.scout_commander = ScoutCommander(base_location,
                                           self.enemy_detector)
     self.build_order_commander = BuildOrderCommander(
         base_location, agent_name)
     self.attack_commander = QLearningAttackCommander(
         base_location, agent_name, self.enemy_detector)
     self.current_order = None
     self.enemy_detector = enemy_detector
示例#4
0
 def __init__(self, base_location: Location):
     Commander.__init__(self)
     self.base_location = base_location
     # cf http://liquipedia.net/starcraft2/MMM_Timing_Push
     self.build_orders = OrdersSequence([
         BuildSupplyDepot(base_location, 0, 15),
         BuildBarracks(base_location, 20, 0),
         BuildRefinery(base_location),
         #SendSCVToRefinery(base_location),
         MorphOrbitalCommand(base_location),
         #TrainMarine(base_location, 3), TODO: no more mixes of Build & Train Order
         BuildSupplyDepot(base_location, 0, 30),
         BuildFactory(base_location, 20, 20),
         # Barracks (2)
         # Refinery (2)
         BuildTechLabBarracks(base_location),
         # Starport
         # Reactor on Factory
         # Timing Push
         # Research Stimpack
         # Switch Starport Reactor
         # Build 2 Medivacs
         # NoOrder(base_location)
     ])
示例#5
0
 def __init__(self, base_location: Location, looping: bool = False):
     Commander.__init__(self)
     self.scouting_order = Scouting(base_location, looping)
示例#6
0
 def __init__(self, base_location: Location):
     Commander.__init__(self)
     self.scout_commander = ScoutingCommander(base_location)
     self.production_commander = ProductionCommander(base_location)
     self.army_commander = ArmyCommander(base_location)
     self.current_commander = self.scout_commander
示例#7
0
 def __init__(self, location: Location, agent_name: str):
     Commander.__init__(self)
     self.location = location
     self.agent_name = agent_name
     self.build_orders = BuildOrderFactory().create3RaxRushTvX(location)
     self.current_order = None
示例#8
0
 def __init__(self, location: Location, enemy_detector: EnemyDetector):
     Commander.__init__(self)
     self.location = location
     self.enemy_detector = enemy_detector
     self.camera_order = None