コード例 #1
0
    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()
コード例 #2
0
    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()
コード例 #3
0
    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()
コード例 #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 enterGame(self):
     DistCogdoLevelGameAI.enterGame(self)
     for i in xrange(self.getNumPlayers()):
         self._cranes[i].request('Controlled', self.getToonIds()[i])
     self._scheduleGameDone()
コード例 #6
0
 def enterGame(self):
     DistCogdoLevelGameAI.enterGame(self)
     self._gameDoneEvent = taskMgr.doMethodLater(
         Consts.GameDuration.get(), self._gameDoneDL,
         self.uniqueName('boardroomGameDone'))