def generate(self):
     self.notify.info('loading spec')
     spec = self.getLevelSpec()
     if __dev__:
         self.notify.info('creating entity type registry')
         typeReg = self.getEntityTypeReg()
         spec.setEntityTypeReg(typeReg)
     DistributedLevelAI.generate(self, spec)
     DistCogdoGameAI.generate(self)
     self.startHandleEdits()
 def generate(self):
     self.notify.info("loading spec")
     spec = self.getLevelSpec()
     if __dev__:
         self.notify.info("creating entity type registry")
         typeReg = self.getEntityTypeReg()
         spec.setEntityTypeReg(typeReg)
     DistributedLevelAI.generate(self, spec)
     DistCogdoGameAI.generate(self)
     self.startHandleEdits()
 def __init__(self, air):
     DistCogdoGameAI.__init__(self, air)
     self.numSuits = (0, 0, 0)
     self.timer = Timer.Timer()
     self.doorRevealed = False
     self.toonsInDoor = []
     self.bosses = {}
     self.fastMinions = {}
     self.slowMinions = {}
     self.suitTypes = [self.bosses, self.fastMinions, self.slowMinions]
     self.numJokes = {}
 def __init__(self, air):
     DistCogdoGameAI.__init__(self, air)
     self.numSuits = (0,0,0)
     self.timer = Timer.Timer()
     self.doorRevealed = False
     self.toonsInDoor = []
     self.bosses = {}
     self.fastMinions = {}
     self.slowMinions = {}
     self.suitTypes = [self.bosses, self.fastMinions, self.slowMinions]
     self.numJokes = {}
예제 #5
0
 def __init__(self, air):
     DistCogdoGameAI.__init__(self, air)
     self.completed = []
     self.eagles = {}
     self.totalMemos = 0
예제 #6
0
 def requestDelete(self):
     DistCogdoGameAI.requestDelete(self)
     self.ignoreAll()
예제 #7
0
 def delete(self):
     if __dev__:
         self.stopHandleEdits()
     DistCogdoGameAI.delete(self)
     DistributedLevelAI.delete(self, deAllocZone=False)
예제 #8
0
 def requestDelete(self):
     DistCogdoGameAI.requestDelete(self)
 def disable(self):
     DistCogdoGameAI.disable(self)
     self.removeAll()
 def announceGenerate(self):
     DistCogdoGameAI.announceGenerate(self)
     self.setupSuitsAI()
예제 #11
0
 def __init__(self, air, interior):
     DistCogdoGameAI.__init__(self, air, interior)
예제 #12
0
 def enterFinish(self):
     DistCogdoGameAI.enterFinish(self)
     self._finishDoneEvent = taskMgr.doMethodLater(
         10., self._finishDoneDL, self.uniqueName('boardroomFinishDone'))
예제 #13
0
 def enterGame(self):
     DistCogdoGameAI.enterGame(self)
     # start the game up. Or wait for a while, that's fun too
     self._gameDoneEvent = taskMgr.doMethodLater(
         15., self._gameDoneDL, self.uniqueName('boardroomGameDone'))
 def __init__(self, air, interior):
     DistCogdoGameAI.__init__(self, air, interior)
     DistributedLevelAI.__init__(self, air, self.zoneId, 0, self.getToonIds())
 def delete(self):
     self.stopHandleEdits()
     DistCogdoGameAI.delete(self)
     DistributedLevelAI.delete(self, deAllocZone=False)
 def requestDelete(self):
     DistCogdoGameAI.requestDelete(self)
 def disable(self):
     DistCogdoGameAI.disable(self)
     self.removeAll()
 def __init__(self, air):
     DistCogdoGameAI.__init__(self, air)
     self.completed = []
     self.eagles = {}
     self.totalMemos = 0
 def requestDelete(self):
     DistCogdoGameAI.requestDelete(self)
     self.ignoreAll()
예제 #20
0
 def __init__(self, air, interior):
     DistCogdoGameAI.__init__(self, air, interior)
     DistributedLevelAI.__init__(self, air, self.zoneId, 0,
                                 self.getToonIds())
 def announceGenerate(self):
     DistCogdoGameAI.announceGenerate(self)
     self.setupSuitsAI()
예제 #22
0
 def __init__(self, air, zoneId, entranceId, avIds):
     DistributedLevelAI.__init__(self, air, zoneId, entranceId, avIds)
     DistCogdoGameAI.__init__(self, air)