def __init__(self, cr):
     DistributedMiniGameWorld.__init__(self, cr)
     Lootable.__init__(self)
     self.fsm = CannonDefenseFSM(self)
     self._numWaves = len(CannonDefenseGlobals.waveData)
     self._waveNumber = 0
     self._bonusSet = 0
     self.timeRemaining = 0
     self.treasurePercent = 1.0
     self._DistributedDefendWorld__isGameFull = False
     self.sfxGoldAttack = None
     self.goldBonus = 0
     self.endOfWaveData = EndOfWaveData()
     self.startingState = None
     self.flamingBarrels = []
     self.initGoldPiles()
 def __init__(self, cr):
     DistributedMiniGameWorld.__init__(self, cr)
     Lootable.__init__(self)
     self.fsm = CannonDefenseFSM(self)
     self._numWaves = len(CannonDefenseGlobals.waveData)
     self._waveNumber = 0
     self._bonusSet = 0
     self.timeRemaining = 0
     self.treasurePercent = 1.0
     self._DistributedDefendWorld__isGameFull = False
     self.sfxGoldAttack = None
     self.goldBonus = 0
     self.endOfWaveData = EndOfWaveData()
     self.startingState = None
     self.flamingBarrels = []
     self.initGoldPiles()
 def turnOn(self, av=None):
     DistributedMiniGameWorld.turnOn(self, av)
 def delete(self):
     DistributedMiniGameWorld.delete(self)
     self.fsm.demand('Off')
 def disable(self):
     DistributedMiniGameWorld.disable(self)
     base.shipsVisibleFromIsland = False
 def announceGenerate(self):
     DistributedMiniGameWorld.announceGenerate(self)
     CullBinManager.getGlobalPtr().addBin('gui-cannonDefense',
                                          CullBinManager.BTFixed, 40)
     self.setupLocalPlayer()
 def generate(self):
     DistributedMiniGameWorld.generate(self)
 def turnOn(self, av=None):
     DistributedMiniGameWorld.turnOn(self, av)
     base.cr.timeOfDayManager.setEnvironment(TODGlobals.ENV_CANNONGAME)
 def turnOn(self, av = None):
     DistributedMiniGameWorld.turnOn(self, av)
     base.cr.timeOfDayManager.setEnvironment(TODGlobals.ENV_CANNONGAME)
 def delete(self):
     DistributedMiniGameWorld.delete(self)
     self.fsm.demand('Off')
 def announceGenerate(self):
     DistributedMiniGameWorld.announceGenerate(self)
     CullBinManager.getGlobalPtr().addBin('gui-cannonDefense', CullBinManager.BTFixed, 40)
     self.setupLocalPlayer()
 def generate(self):
     DistributedMiniGameWorld.generate(self)