sc2simulator/scenarioMgr/scenario.py
def addUpgrade(self, player, upgrade):
        """define an upgrade within a Scenario"""
        if player not in self.players:
            self.addPlayer(player)
        if isinstance(upgrade, str):
            if not techtree:
                raise NotImplementedError(("upgrade '%s' cannot be defined "\
                    "unless the sc2techTree package is available")%(upgrade))
            upgrade = sc2techTree.getUpgrade(upgrade)
        self.upgrades[player].append(upgrade)
define an upgrade within a Scenario
define an upgrade within a Scenario
define an upgrade within a Scenario
def addUpgrade(self, player, upgrade):
        if player not in self.players:
            self.addPlayer(player)
        if isinstance(upgrade, str):
            if not techtree:
                raise NotImplementedError(("upgrade '%s' cannot be defined "\
                    "unless the sc2techTree package is available")%(upgrade))
            upgrade = sc2techTree.getUpgrade(upgrade)
        self.upgrades[player].append(upgrade)
def addUpgrade ( self , player , upgrade ) : if player not in self . players : self . addPlayer ( player ) if isinstance ( upgrade , str ) : if not techtree : raise NotImplementedError ( ( "upgrade '%s' cannot be defined " "unless the sc2techTree package is available" ) % ( upgrade ) ) upgrade = sc2techTree . getUpgrade ( upgrade ) self . upgrades [ player ] . append ( upgrade )
define an upgrade within a Scenario
define an upgrade within a Scenario
"""define an upgrade within a Scenario"""
self
player
upgrade