def exitLoaded(self): for i in xrange(self.MaxPlayers): if self._cranes[i]: self._cranes[i].requestDelete() self._cranes[i] = None continue DistCogdoLevelGameAI.exitLoaded(self)
def enterFinish(self): DistCogdoLevelGameAI.enterFinish(self) self._finishDoneEvent = taskMgr.doMethodLater( 10.0, self._finishDoneDL, self.uniqueName('boardroomFinishDone'))
def enterGame(self): DistCogdoLevelGameAI.enterGame(self) for i in xrange(self.getNumPlayers()): self._cranes[i].request('Controlled', self.getToonIds()[i]) self._scheduleGameDone()
def enterLoaded(self): DistCogdoLevelGameAI.enterLoaded(self) for i in xrange(self.MaxPlayers): crane = DistCogdoCraneAI(self.air, self, i) crane.generateWithRequired(self.zoneId) self._cranes[i] = crane
def __init__(self, air, interior): DistCogdoLevelGameAI.__init__(self, air, interior) self._cranes = [None] * self.MaxPlayers
def __init__(self, air, interior): DistCogdoLevelGameAI.__init__(self, air, interior) self._cranes = [ None] * self.MaxPlayers
def enterFinish(self): DistCogdoLevelGameAI.enterFinish(self) self._finishDoneEvent = taskMgr.doMethodLater(10.0, self._finishDoneDL, self.uniqueName('boardroomFinishDone'))