def loadCogs(self):
        suitTypes = SuitDNA.suitHeadTypes

        for suitIndex in xrange(self.getNumCogs()):
            st = self.randomNumGen.choice(suitTypes)
            suit = CogThief.CogThief(suitIndex, st, self, self.getCogSpeed())
            self.cogInfo[suitIndex]['suit'] = suit
Example #2
0
 def loadCogs(self):
     suitTypes = ['ds', 'ac', 'bc', 'ms']
     for suitIndex in xrange(self.getNumCogs()):
         st = base.cr.newsManager.getInvadingSuit()
         if not st:
             st = self.randomNumGen.choice(suitTypes)
         suit = CogThief.CogThief(suitIndex, st, self, self.getCogSpeed())
         self.cogInfo[suitIndex]['suit'] = suit
Example #3
0
 def loadCogs(self):
     suitTypes = ['ds',
      'ac',
      'bc',
      'ms']
     for suitIndex in range(self.getNumCogs()):
         st = self.randomNumGen.choice(suitTypes)
         suit = CogThief.CogThief(suitIndex, st, self, self.getCogSpeed())
         self.cogInfo[suitIndex]['suit'] = suit
 def loadCogs(self):
     zoneId = self.getSafezoneId()
     suitTypes = \
         [getRandomSuitByLevel(CTGG.ZoneSuitLevels[zoneId] - 1) for _ in xrange(4)] +\
         [getRandomSuitByLevel(CTGG.ZoneSuitLevels[zoneId]) for _ in xrange(4)] +\
         [getRandomSuitByLevel(CTGG.ZoneSuitLevels[zoneId] + 1) for _ in xrange(4)]
     for suitIndex in xrange(self.getNumCogs()):
         st = self.randomNumGen.choice(suitTypes)
         suit = CogThief.CogThief(suitIndex, st, self, self.getCogSpeed())
         self.cogInfo[suitIndex]['suit'] = suit