def setPondDoId(self, pondDoId): self.pond = base.cr.doId2do[pondDoId] self.pond.addTarget(self) self.centerPoint = FishingTargetGlobals.getTargetCenter( self.pond.getArea()) self.maxRadius = FishingTargetGlobals.getTargetRadius( self.pond.getArea())
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 __init__(self, air, pond, hunger): DistributedNodeAI.DistributedNodeAI.__init__(self, air) self.notify.debug("init") self.pond = pond self.area = self.pond.getArea() self.hunger = hunger # For now we are always moving self.stateIndex = FishingTargetGlobals.MOVING self.centerPoint = FishingTargetGlobals.getTargetCenter(self.area) self.maxRadius = FishingTargetGlobals.getTargetRadius(self.area) self.currentAngle = 0.0 self.currentRadius = 0.0 self.time = 0.0
def setPondDoId(self, pondDoId): self.pond = base.cr.doId2do[pondDoId] self.pond.addTarget(self) self.centerPoint = FishingTargetGlobals.getTargetCenter(self.pond.getArea()) self.maxRadius = FishingTargetGlobals.getTargetRadius(self.pond.getArea())
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())