sc2simulator/scenarioMgr/scenarioPlayer.py
def display(self, indent=0, display=True):
        """pretty print ALL information about this player"""
        idt = " "*indent
        msg = []
        msg.append("%s%s"%(idt, self))
        msg.append("%s    %d unit(s):"%(idt, self.numUnits))
        for u in self.units:    msg.append("%s        %s"%(idt, u))
        msg.append("%s    %d upgrade(s):"%(idt, self.numUpgrades))
        for u in self.upgrades: msg.append("%s        %s"%(idt, u))
        if display:
            for m in msg:
                print(m)
        else:
            return os.linesep.join(msg)
pretty print ALL information about this player
pretty print ALL information about this player
pretty print ALL information about this player
def display(self, indent=0, display=True):
        idt = " "*indent
        msg = []
        msg.append("%s%s"%(idt, self))
        msg.append("%s    %d unit(s):"%(idt, self.numUnits))
        for u in self.units:    msg.append("%s        %s"%(idt, u))
        msg.append("%s    %d upgrade(s):"%(idt, self.numUpgrades))
        for u in self.upgrades: msg.append("%s        %s"%(idt, u))
        if display:
            for m in msg:
                print(m)
        else:
            return os.linesep.join(msg)
def display ( self , indent = 0 , display = True ) : idt = " " * indent msg = [ ] msg . append ( "%s%s" % ( idt , self ) ) msg . append ( "%s    %d unit(s):" % ( idt , self . numUnits ) ) for u in self . units : msg . append ( "%s        %s" % ( idt , u ) ) msg . append ( "%s    %d upgrade(s):" % ( idt , self . numUpgrades ) ) for u in self . upgrades : msg . append ( "%s        %s" % ( idt , u ) ) if display : for m in msg : print ( m ) else : return os . linesep . join ( msg )
pretty print ALL information about this player
pretty print ALL information about this player
"""pretty print ALL information about this player"""
self
indent
display