def createGolfSpots(self):
     if self.golfSpots:
         return
     for i in xrange(self.numGolfSpots):
         newGolfSpot = DistributedGolfSpotAI.DistributedGolfSpotAI(self.air, self, i)
         self.golfSpots.append(newGolfSpot)
         newGolfSpot.generateWithRequired(self.zoneId)
         newGolfSpot.forceFree()
 def createGolfSpots(self):
     """Create the golf spots for phase four of the boss battle."""
     if self.golfSpots:
         # using ~bossBattle, don't make them twice
         return
     for i in range(self.numGolfSpots):
         newGolfSpot = DistributedGolfSpotAI.DistributedGolfSpotAI(
             self.air, self, i)
         self.golfSpots.append(newGolfSpot)
         newGolfSpot.generateWithRequired(self.zoneId)
         newGolfSpot.forceFree()