示例#1
0
    def __init__(self, cr):
        DistributedSmoothNode.__init__(self, cr)
        BaseProjectileShared.__init__(self)
        BasePhysicsObject.__init__(self)
        NodePath.__init__(self, ModelRoot("BaseProjectile"))

        self.model = None
        self.impactSound = None
示例#2
0
 def disable(self):
     self.stopWaterCheck()
     self.cleanupPhysics()
     if self.model:
         self.model.removeNode()
         self.model = None
     self.impactSound = None
     BaseProjectileShared.cleanup(self)
     DistributedSmoothNode.disable(self)
示例#3
0
 def delete(self):
     BaseProjectileShared.cleanup(self)
     self.stop()
     DistributedSmoothNodeAI.delete(self)
示例#4
0
 def __init__(self, air):
     DistributedSmoothNodeAI.__init__(self, air)
     BaseProjectileShared.__init__(self)