def __init__(self, cr):
     DistCogdoCraneObject.__init__(self, cr)
     NodePath.__init__(self, 'object')
     self.index = None
     self.flyToMagnetSfx = loader.loadSfx('phase_5/audio/sfx/TL_rake_throw_only.ogg')
     self.hitMagnetSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_safe.ogg')
     self.toMagnetSoundInterval = Parallel(SoundInterval(self.flyToMagnetSfx, duration=ToontownGlobals.CashbotBossToMagnetTime, node=self), Sequence(Wait(ToontownGlobals.CashbotBossToMagnetTime - 0.02), SoundInterval(self.hitMagnetSfx, duration=1.0, node=self)))
     self.hitFloorSfx = loader.loadSfx('phase_5/audio/sfx/AA_drop_bigweight_miss.ogg')
     self.hitFloorSoundInterval = SoundInterval(self.hitFloorSfx, node=self)
     return
 def announceGenerate(self):
     DistCogdoCraneObject.announceGenerate(self)
     self.name = 'moneyBag-%s' % self.doId
     self.setName(self.name)
     self.craneGame.moneyBag.copyTo(self)
     self.shadow = NodePath('notAShadow')
     self.collisionNode.setName('moneyBag')
     cs = CollisionSphere(0, 0, 4, 4)
     self.collisionNode.addSolid(cs)
     self.craneGame.moneyBags[self.index] = self
     self.setupPhysics('moneyBag')
     self.resetToInitialPosition()
 def setObjectState(self, state, avId, craneId):
     if state == 'I':
         self.demand('Initial')
     else:
         DistCogdoCraneObject.setObjectState(self, state, avId, craneId)
 def disable(self):
     del self.craneGame.moneyBags[self.index]
     DistCogdoCraneObject.disable(self)