예제 #1
0
 def getRandomPowerupType(self, forceType=None, excludeTypes=None):
     if excludeTypes:
         # exclude custom powerups if there is some custom powerup logic
         # example: bsFootball.py:456
         excludeTypes.append('snoball')
         excludeTypes.append('bunny')
     else:
         excludeTypes = []
     return PowerupFactory.getRandomPowerupType(self, forceType,
                                                excludeTypes)
예제 #2
0
 def getRandomPowerupType(self, forceType=None, excludeTypes=None):
     if excludeTypes:
         #FIXME bsFootball.py:456
         #FIXME runaround and onslaught !
         excludeTypes.append('superStar')
         excludeTypes.append('speed')
         excludeTypes.append('iceCube')
         excludeTypes.append('surprise')
         excludeTypes.append('martyrdom')
     else:
         excludeTypes = []
     return PowerupFactory.getRandomPowerupType(self, forceType,
                                                excludeTypes)