Example #1
0
    def disable(self):
        """ This method is called when the object is removed from the
        scene, for instance because it left the zone.  It is balanced
        against generate(): for each generate(), there will be a
        corresponding disable().  Everything that was done in
        generate() or announceGenerate() should be undone in disable().

        After a disable(), the object might be cached in memory in case
        it will eventually reappear.  The DistributedObject should be
        prepared to receive another generate() for an object that has
        already received disable().

        Note that the above is only strictly true for *cacheable*
        objects.  Most objects are, by default, non-cacheable; you
        have to call obj.setCacheable(True) (usually in the
        constructor) to make it cacheable.  Until you do this, your
        non-cacheable object will always receive a delete() whenever
        it receives a disable(), and it will never be stored in a
        cache.
        """

        # Take it out of the scene graph.
        self.detachNode()

        DistributedNode.disable(self)
    def disable(self):
        """ This method is called when the object is removed from the
        scene, for instance because it left the zone.  It is balanced
        against generate(): for each generate(), there will be a
        corresponding disable().  Everything that was done in
        generate() or announceGenerate() should be undone in disable().

        After a disable(), the object might be cached in memory in case
        it will eventually reappear.  The DistributedObject should be
        prepared to receive another generate() for an object that has
        already received disable().

        Note that the above is only strictly true for *cacheable*
        objects.  Most objects are, by default, non-cacheable; you
        have to call obj.setCacheable(True) (usually in the
        constructor) to make it cacheable.  Until you do this, your
        non-cacheable object will always receive a delete() whenever
        it receives a disable(), and it will never be stored in a
        cache.
        """

        # Take it out of the scene graph.
        self.detachNode()

        DistributedNode.disable(self)
 def disable(self):
     DistributedNode.disable(self)
     self.ignoreAll()
     if self.animTrack:
         self.animTrack.pause()
         self.animTrack = None
     return
 def disable(self):
     if self.avatarInTurret:
         self.avatarInTurret.getPart('legs').show()
         self.avatarInTurret.getPart('torso').show()
         self.avatarInTurret.getPart('head').show()
         self.avatarInTurret = None
     self.removeCannon()
     DistributedNode.disable(self)
 def disable(self):
     if self.flagMdl:
         self.flagMdl.removeNode()
         self.flagMdl = None
     if self.collNP:
         self.collNP.removeNode()
         self.collNP = None
     self.team = None
     DistributedNode.disable(self)
Example #6
0
 def disable(self):
     if self.avatarInTurret:
         self.avatarInTurret.getPart('legs').show()
         self.avatarInTurret.getPart('torso').show()
         self.avatarInTurret.getPart('head').show()
         self.avatarInTurret = None
     self.removeCannon()
     DistributedNode.disable(self)
     return
Example #7
0
 def disable(self):
     taskMgr.remove(self.uniqueName("pollMG"))
     if base.minigame:
         base.minigame.cannons.remove(self)
     if self.avatarInTurret:
         self.avatarInTurret.getPart('legs').show()
         self.avatarInTurret.getPart('torso').show()
         self.avatarInTurret.getPart('head').show()
         self.avatarInTurret = None
     self.removeCannon()
     DistributedNode.disable(self)
    def disable(self):
        self.ignore(self.collName)

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

        # Take it out of the scene graph.
        self.detachNode()

        DistributedNode.disable(self)
    def disable(self):
        taskMgr.remove('showEnterMessage')
        DistributedNode.disable(self)
        if self.geom:
            self.geom.removeNode()
        self.unloadConnectors()
        for request in self.pendingSetupConnector.itervalues():
            self.cr.relatedObjectMgr.abortRequest(request)

        self.pendingSetupConnector = {}
        self.builder.delete()
        self.builder = None
        return
    def disable(self):
        DistributedNode.disable(self)
        base.taskMgr.remove(self.distanceTask)
        if self.iconSequence:
            self.iconSequence.finish()
            self.iconSequence = None
        if self.fadeSequence:
            self.fadeSequence.finish()
            self.fadeSequence = None
        if self.text:
            self.text.hide()

        self.ignoreAll()
Example #11
0
 def disable(self):
     taskMgr.remove('showEnterMessage')
     DistributedNode.disable(self)
     if self.geom:
         self.geom.removeNode()
     
     self.unloadConnectors()
     for request in self.pendingSetupConnector.itervalues():
         self.cr.relatedObjectMgr.abortRequest(request)
     
     self.pendingSetupConnector = { }
     self.builder.delete()
     self.builder = None
 def disable(self):
     self.ignore('enter' + self.triggerNP.node().getName())
     self.__removeAllBarrels()
     self.barrels = None
     self.numBarrels = None
     if self.rope:
         self.rope.removeNode()
         self.rope = None
     if self.pod:
         self.pod.removeNode()
         self.pod = None
     if self.kart:
         self.kart.removeNode()
         self.kart = None
     self.mg = None
     DistributedNode.disable(self)
 def disable(self):
     self.ignore(self.uniqueName('enterShipDeploySphere'))
     self.ignore(self.uniqueName('exitShipDeploySphere'))
     self.ignore(self.uniqueName('enterShipDeploy-MaxSphereSoft'))
     self.ignore(self.uniqueName('exitShipDeploy-MaxSphereSoft'))
     self.ignore(self.uniqueName('enterShipDeploy-MaxSphereHard'))
     self.ignore(self.uniqueName('exitShipDeploy-MaxSphereHard'))
     self.ignore(self.uniqueName('enterShipDeploy-MinSphere'))
     self.ignore(self.uniqueName('exitShipDeploy-MinSphere'))
     self.ignore('settingLocalShip')
     self.unlockMessages()
     self.removeChildren()
     self.minSphere = None
     self.maxSphereSoft = None
     self.maxSphereHard = None
     self.deploySpheres = []
     DistributedNode.disable(self)
 def disable(self):
     self.ignore('enter' + self.triggerNP.node().getName())
     self.__removeAllBarrels()
     self.barrels = None
     self.numBarrels = None
     if self.rope:
         self.rope.removeNode()
         self.rope = None
     if self.pod:
         self.pod.removeNode()
         self.pod = None
     if self.kart:
         self.kart.removeNode()
         self.kart = None
     self.mg = None
     DistributedNode.disable(self)
     return
 def disable(self):
     self.ignore(self.uniqueName('enterShipDeploySphere'))
     self.ignore(self.uniqueName('exitShipDeploySphere'))
     self.ignore(self.uniqueName('enterShipDeploy-MaxSphereSoft'))
     self.ignore(self.uniqueName('exitShipDeploy-MaxSphereSoft'))
     self.ignore(self.uniqueName('enterShipDeploy-MaxSphereHard'))
     self.ignore(self.uniqueName('exitShipDeploy-MaxSphereHard'))
     self.ignore(self.uniqueName('enterShipDeploy-MinSphere'))
     self.ignore(self.uniqueName('exitShipDeploy-MinSphere'))
     self.ignore('settingLocalShip')
     self.unlockMessages()
     self.removeChildren()
     self.minSphere = None
     self.maxSphereSoft = None
     self.maxSphereHard = None
     self.deploySpheres = []
     DistributedNode.disable(self)
 def disable(self):
     self.fsm.requestFinalState()
     if self.moPath:
         self.moPath.stop()
         self.moPath = None
     self.moPaths = None
     self.honkSfxPath = None
     self.cartModelPath = None
     self.soundEngineLoop = None
     self.soundDriveBy = None
     if self.suitInCar:
         self.suitInCar.disable()
         self.suitInCar.delete()
         self.suitInCar = None
     if self.cart:
         self.cart.removeNode()
         self.cart = None
     del self.fsm
     DistributedNode.disable(self)
Example #17
0
 def disable(self):
     self.fsm.requestFinalState()
     if self.moPath:
         self.moPath.stop()
         self.moPath = None
     self.moPaths = None
     self.honkSfxPath = None
     self.cartModelPath = None
     self.soundEngineLoop = None
     self.soundDriveBy = None
     if self.suitInCar:
         self.suitInCar.disable()
         self.suitInCar.delete()
         self.suitInCar = None
     if self.cart:
         self.cart.removeNode()
         self.cart = None
     del self.fsm
     DistributedNode.disable(self)
     return
 def disable(self):
     DistributedNode.disable(self)
     self.stopProcessVisibility()
Example #19
0
 def disable(self):
     self.inShop = False
     self.snp = None
     self.removeClerk()
     DistributedNode.disable(self)
     return
 def disable(self):
     self.unload()
     DistributedNode.disable(self)
Example #21
0
 def disable(self):
     DistributedNode.disable(self)
     self.destroy()
 def disable(self):
     DistributedNode.disable(self)
     self.stopProcessVisibility()
 def disable(self):
     DistributedNode.disable(self)
     InteractiveBase.disable(self)
     DistributedLocatableObject.disable(self)
Example #24
0
 def disable(self):
     self.unload()
     DistributedNode.disable(self)
Example #25
0
 def disable(self):
     DistributedNode.disable(self)
     self.destroy()
Example #26
0
 def disable(self):
     DistributedNode.disable(self)
     del self.trolleyStation
     del self.trolleyCar