Exemple #1
0
 def __init__(self, map, players, factions):
     self.map = map
     self.seed = random.randint(0, 10000)
     self.me = DirectClient(config.login, self)
     self.players = [self.me] + [DummyClient(x) for x in players[1:]]
     for p, f in zip(self.players, factions):
         p.faction = f
Exemple #2
0
 def __init__(self, map):
     self.map = map
     self.seed = random.randint(0, 10000)
     self.me = DirectClient(config.login, self)
     self.players = [self.me]
     if self.map.campaign_rules:
         # missions with custom rules can't be replayed yet
         self.record_replay = False
Exemple #3
0
 def __init__(self, map):
     self.map = map
     self.seed = random.randint(0, 10000)
     self.me = DirectClient(config.login, self)
     self.players = [self.me]