コード例 #1
0
    def setGameStart(self, timestamp):
        if not self.hasLocalToon:
            return
        self.notify.debug('setGameStart')
        DistributedMinigame.setGameStart(self, timestamp)
        if self.introTrack.isPlaying():
            self.introTrack.finish()
        for avId in self.remoteAvIdList:
            toon = self.getAvatar(avId)
            if toon:
                toon.stopLookAround()

        self.gameFSM.request('play')
コード例 #2
0
 def setGameStart(self, timestamp):
     if not self.hasLocalToon:
         return
     self.notify.debug('setGameStart')
     DistributedMinigame.setGameStart(self, timestamp)
     if not config.GetBool('cog-thief-endless', 0):
         self.timer.show()
         self.timer.countdown(CTGG.GameTime, self.__gameTimerExpired)
     self.clockStopTime = None
     self.rewardPanel.reparentTo(base.a2dTopRight)
     self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
     self.__startRewardCountdown()
     self.gameFSM.request('play')
     return
 def setGameStart(self, timestamp):
     if not self.hasLocalToon:
         return
     self.notify.debug('setGameStart')
     DistributedMinigame.setGameStart(self, timestamp)
     if not config.GetBool('cog-thief-endless', 0):
         self.timer.show()
         self.timer.countdown(CTGG.GameTime, self.__gameTimerExpired)
     self.clockStopTime = None
     self.rewardPanel.reparentTo(base.a2dTopRight)
     self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
     self.__startRewardCountdown()
     self.gameFSM.request('play')
     return
コード例 #4
0
 def setGameStart(self, timestamp):
     if not self.hasLocalToon:
         return
     self.notify.debug("setGameStart")
     DistributedMinigame.setGameStart(self, timestamp)
     if not base.config.GetBool("cog-thief-endless", 0):
         self.timer.show()
         self.timer.countdown(CTGG.GameTime, self.__gameTimerExpired)
     self.clockStopTime = None
     self.rewardPanel.reparentTo(aspect2d)
     self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
     self.__startRewardCountdown()
     if self.introTrack.isPlaying():
         self.introTrack.finish()
     self.gameFSM.request("play")
     return
コード例 #5
0
    def setGameStart(self, timestamp):
        if not self.hasLocalToon:
            return None

        self.notify.debug('setGameStart')
        DistributedMinigame.setGameStart(self, timestamp)
        if not base.config.GetBool('cog-thief-endless', 0):
            self.timer.show()
            self.timer.countdown(
                CTGG.GameTime, self._DistributedCogThiefGame__gameTimerExpired)

        self.clockStopTime = None
        self.rewardPanel.reparentTo(aspect2d)
        self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
        self._DistributedCogThiefGame__startRewardCountdown()
        if self.introTrack.isPlaying():
            self.introTrack.finish()

        self.gameFSM.request('play')
コード例 #6
0
    def setGameStart(self, timestamp):
        DistributedMinigame.setGameStart(self, timestamp)

        self.game.start()
コード例 #7
0
 def setGameStart(self, timestamp):
     DistributedMinigame.setGameStart(self, timestamp)
     self.acceptOnce("escape", self.d_requestExit)
     self.game.enable()