示例#1
0
 def generate(self):
     DistributedNodeAI.generate(self)
     pond = self.air.doId2do.get(self.pondDoId)
     if pond:
         pond.addTarget(self)
     self.centerPoint = FishingTargetGlobals.getTargetCenter(pond.getArea())
     self.__updateState()
 def generate(self):
     DistributedNodeAI.generate(self)
     self.updateState()
     if not self.pondId:
         return
     pond = self.air.doId2do[self.pondId]
     pond.addTarget(self)
     self.centerPoint = FishingTargetGlobals.getTargetCenter(pond.getArea())
 def generate(self):
     DistributedNodeAI.generate(self)
     self.updateState()
     if not self.pondId:
         #We dont have a pond ID for some reason...
         return
     pond = self.air.doId2do[self.pondId]
     pond.addTarget(self)
     self.centerPoint = FishingTargetGlobals.getTargetCenter(pond.getArea())
示例#4
0
 def setPond(self, pond):
     self.pond = pond
     self.pond.addTarget(self)
     self.centerPoint = FishingTargetGlobals.getTargetCenter(self.pond.getArea())
     self.maxRadius = FishingTargetGlobals.getTargetRadius(self.pond.getArea())
 def generate(self):
     DistributedNodeAI.generate(self)
     self.updateState()
     pond = self.air.doId2do[self.pondId]
     pond.addTarget(self)
     self.centerPoint = FishingTargetGlobals.getTargetCenter(pond.getArea())