コード例 #1
0
ファイル: CogdoFlyingGame.py プロジェクト: perpi06/ttoffline
 def _initLegalEagles(self):
     nestIndex = 1
     nests = self.level.root.findAllMatches('**/%s;+s' % Globals.Level.LegalEagleNestName)
     for nest in nests:
         legalEagle = CogdoFlyingLegalEagle(nest, nestIndex)
         self.legalEagles.append(legalEagle)
         self.index2LegalEagle[nestIndex] = legalEagle
         nestIndex += 1
コード例 #2
0
ファイル: CogdoFlyingGame.py プロジェクト: perpi06/ttoffline
 def _initLegalEagles(self):
     nestIndex = 1
     nests = self.level.root.findAllMatches('**/%s;+s' % Globals.Level.LegalEagleNestName)
     self.invSuit = base.cr.newsManager.getInvadingSuit()
     if not self.invSuit:
         self.invSuit = 'le'
     for nest in nests:
         legalEagle = CogdoFlyingLegalEagle(nest, nestIndex, self.invSuit)
         self.legalEagles.append(legalEagle)
         self.index2LegalEagle[nestIndex] = legalEagle
         nestIndex += 1