Beispiel #1
0
 def disable(self):
     self.submergeInterval.pause()
     self.submergeInterval = None
     self.emergeInterval.pause()
     self.emergeInterval = None
     self.stopSmooth()
     self.stopRangeTask()
     if self.shipRomRequest:
         self.cr.relatedObjectMgr.abortRequest(self.shipRomRequest)
         self.shipRomRequest = None
     if self.sinkCutsceneIval:
         self.sinkCutsceneIval.finish()
         self.sinkCutsceneIval = None
     if self.sinkShipIval:
         self.sinkShipIval.finish()
         self.sinkShipIval = None
     targetShip = self.getTargetShip()
     if targetShip:
         targetShip.setKraken(None)
     DistributedMovingObject.disable(self)
     return
    def disable(self):
        self.submergeInterval.pause()
        self.submergeInterval = None
        self.emergeInterval.pause()
        self.emergeInterval = None
        self.stopSmooth()
        self.stopRangeTask()
        if self.shipRomRequest:
            self.cr.relatedObjectMgr.abortRequest(self.shipRomRequest)
            self.shipRomRequest = None

        if self.sinkCutsceneIval:
            self.sinkCutsceneIval.finish()
            self.sinkCutsceneIval = None

        if self.sinkShipIval:
            self.sinkShipIval.finish()
            self.sinkShipIval = None

        targetShip = self.getTargetShip()
        if targetShip:
            targetShip.setKraken(None)

        DistributedMovingObject.disable(self)
Beispiel #3
0
 def announceGenerate(self):
     DistributedMovingObject.announceGenerate(self)
     self.setupSmoothing()
 def announceGenerate(self):
     DistributedMovingObject.announceGenerate(self)
     self.setupSmoothing()