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
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