예제 #1
0
 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 exitLoaded(self):
     for i in xrange(self.MaxPlayers):
         if self._cranes[i]:
             self._cranes[i].requestDelete()
             self._cranes[i] = None
             continue
     DistCogdoLevelGameAI.exitLoaded(self)
예제 #3
0
 def enterFinish(self):
     DistCogdoLevelGameAI.enterFinish(self)
     self._finishDoneEvent = taskMgr.doMethodLater(
         10.0, self._finishDoneDL, self.uniqueName('boardroomFinishDone'))
예제 #4
0
 def enterGame(self):
     DistCogdoLevelGameAI.enterGame(self)
     for i in xrange(self.getNumPlayers()):
         self._cranes[i].request('Controlled', self.getToonIds()[i])
     self._scheduleGameDone()
예제 #5
0
 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
예제 #6
0
 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'))
 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