def enterGame(self): DistCogdoLevelGameAI.enterGame(self) # put the players on the cranes for i in range(self.getNumPlayers()): self._cranes[i].request('Controlled', self.getToonIds()[i]) # start the game up. Or wait for a while, that's fun too self._scheduleGameDone()
def enterGame(self): DistCogdoLevelGameAI.enterGame(self) for i in xrange(self.getNumPlayers()): self._cranes[i].request('Controlled', self.getToonIds()[i]) for i in xrange(len(self._moneyBags)): if self._moneyBags[i]: self._moneyBags[i].request('Initial') self._cog = DistCogdoCraneCogAI(self.air, self, self.getDroneCogDNA(), random.randrange(4), globalClock.getFrameTime()) self._cog.generateWithRequired(self.zoneId) self._scheduleGameDone()
def enterGame(self): DistCogdoLevelGameAI.enterGame(self) # put the players on the cranes for i in range(self.getNumPlayers()): self._cranes[i].request('Controlled', self.getToonIds()[i]) for i in range(len(self._moneyBags)): if self._moneyBags[i]: self._moneyBags[i].request('Initial') self._cog = DistCogdoCraneCogAI(self.air, self, self.getDroneCogDNA(), random.randrange(4), globalClock.getFrameTime()) self._cog.generateWithRequired(self.zoneId) # start the game up. Or wait for a while, that's fun too self._scheduleGameDone()
def enterGame(self): DistCogdoLevelGameAI.enterGame(self) for i in xrange(self.getNumPlayers()): self._cranes[i].request('Controlled', self.getToonIds()[i]) self._scheduleGameDone()
def enterGame(self): DistCogdoLevelGameAI.enterGame(self) self._gameDoneEvent = taskMgr.doMethodLater( Consts.GameDuration.get(), self._gameDoneDL, self.uniqueName('boardroomGameDone'))