def startNextHole(self):
     self.notify.debugStateCall(self)
     holeId = self.holeIds[self.numHolesPlayed]
     self.currentHole = DistributedGolfHoleAI.DistributedGolfHoleAI(self.zoneId, golfCourse=self, holeId=holeId)
     self.currentHole.generateWithRequired(self.zoneId)
     self.d_setCurHoleDoId(self.currentHole.doId)
     self.safeDemand('WaitReadyHole')
 def sendToGolfCourse(self, avId):
     if self.golfZone == None:
         self.golfZone = self.air.allocateZone()
         someHole = DistributedGolfHoleAI.DistributedGolfHoleAI(
             self.golfZone)
         someHole.generateWithRequired(self.golfZone)
     print("Sending %s to course %s" % (avId, self.golfZone))
     self.sendUpdate("sendToGolfCourse", [avId, self.golfZone])