當前位置: 首頁>>代碼示例>>Python>>正文


Python CogdoExecutiveSuiteMovies.CogdoExecutiveSuiteIntro類代碼示例

本文整理匯總了Python中CogdoExecutiveSuiteMovies.CogdoExecutiveSuiteIntro的典型用法代碼示例。如果您正苦於以下問題:Python CogdoExecutiveSuiteIntro類的具體用法?Python CogdoExecutiveSuiteIntro怎麽用?Python CogdoExecutiveSuiteIntro使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CogdoExecutiveSuiteIntro類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: enterBattleIntro

 def enterBattleIntro(self, ts = 0):
     self._movie = CogdoExecutiveSuiteIntro(self.shopOwnerNpc)
     self._movie.load()
     self._movie.play()
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:4,代碼來源:DistributedCogdoInterior.py

示例2: DistributedCogdoInterior


#.........這裏部分代碼省略.........
            if self._wantBarrelRoom:
                self.acceptOnce('localToonLeft', self.__handleLocalToonLeftBarrelRoom)
                self.barrelRoom.activate()
                base.playMusic(self.waitMusic, looping=1, volume=0.7)
                base.localAvatar.questMap.stop()

    def exitCollectBarrels(self):
        if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
            self.ignore('localToonLeft')
            self.barrelRoom.deactivate()
            self.waitMusic.stop()

    def __brRewardDone(self, task = None):
        self.notify.info('Toon finished watching the barrel room reward.')
        self.sendUpdate('toonBarrelRoomRewardDone', [])
        self.fsm.request('Battle')

    def enterBarrelRoomReward(self, ts = 0):
        if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
            base.cr.playGame.getPlace().fsm.request('stopped')
            self.startAlertElevatorLightIval(self.elevatorModelOut)
            track, trackName = self.barrelRoom.showRewardUi(callback=self.__brRewardDone)
            self.activeIntervals[trackName] = track
            track.start()
            self.barrelRoom.placeToonsNearBattle(self.toons)

    def exitBarrelRoomReward(self):
        if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
            base.cr.playGame.getPlace().fsm.request('walk')
            self.stopAlertElevatorLightIval(self.elevatorModelOut)
            self.barrelRoom.hideRewardUi()

    def enterBattleIntro(self, ts = 0):
        self._movie = CogdoExecutiveSuiteIntro(self.shopOwnerNpc)
        self._movie.load()
        self._movie.play()

    def exitBattleIntro(self):
        self._movie.end()
        self.__cleanupPenthouseIntro()

    def __playCloseElevatorOut(self, name, delay = 0):
        track = Sequence(Wait(delay + SUIT_LEAVE_ELEVATOR_TIME), Parallel(SoundInterval(self.closeSfx), LerpPosInterval(self.leftDoorOut, ElevatorData[ELEVATOR_NORMAL]['closeTime'], ElevatorUtils.getLeftClosePoint(ELEVATOR_NORMAL), startPos=Point3(0, 0, 0), blendType='easeOut'), LerpPosInterval(self.rightDoorOut, ElevatorData[ELEVATOR_NORMAL]['closeTime'], ElevatorUtils.getRightClosePoint(ELEVATOR_NORMAL), startPos=Point3(0, 0, 0), blendType='easeOut')))
        track.start()
        self.activeIntervals[name] = track

    def enterBattle(self, ts = 0):
        if self._wantBarrelRoom and self.elevatorOutOpen == 1:
            self.__playCloseElevatorOut(self.uniqueName('close-out-elevator'), delay=2)
            camera.setPos(0, -15, 6)
            camera.headsUp(self.elevatorModelOut)

    def _showExitElevator(self):
        self.elevatorModelOut.reparentTo(self.elevOut)
        self.leftDoorOut.setPos(3.5, 0, 0)
        self.rightDoorOut.setPos(-3.5, 0, 0)
        if not self._wantBarrelRoom and self.elevatorOutOpen == 1:
            self.__playCloseElevatorOut(self.uniqueName('close-out-elevator'))
            camera.setPos(0, -15, 6)
            camera.headsUp(self.elevatorModelOut)

    def exitBattle(self):
        if self.elevatorOutOpen == 1:
            self.__finishInterval(self.uniqueName('close-out-elevator'))
            self.elevatorOutOpen = 0
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:66,代碼來源:DistributedCogdoInterior.py

示例3: enterBarrelRoomIntro

 def enterBarrelRoomIntro(self, ts = 0):
     if not self.isBossFloor(self.currentFloor):
         if self._wantBarrelRoom:
             self.__setupBarrelRoom()
             self.barrelRoomIntroTrack, trackName = self.barrelRoom.getIntroInterval()
             self.barrelRoomIntroDoneEvent = trackName
             self.accept(self.barrelRoomIntroDoneEvent, self.barrelRoomIntroDone)
             self.activeIntervals[trackName] = self.barrelRoomIntroTrack
             self.barrelRoomIntroTrack.start(ts)
             self._movie = CogdoBarrelRoomIntro()
             self._movie.load()
             self._movie.play()
         else:
             self._showExitElevator()
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:14,代碼來源:DistributedCogdoInterior.py

示例4: enterElevator

 def enterElevator(self, ts = 0):
     if not self._CogdoGameRepeat:
         self.currentFloor += 1
     self.cr.playGame.getPlace().currentFloor = self.currentFloor
     self.setElevatorLights(self.elevatorModelIn)
     self.setElevatorLights(self.elevatorModelOut)
     if not self.isBossFloor(self.currentFloor):
         self.elevatorModelOut.detachNode()
         messenger.send('sellbotFieldOfficeChanged', [True])
     else:
         self._movie = CogdoElevatorMovie()
         self._movie.load()
         self._movie.play()
     self.__playElevator(ts, self.elevatorName, self.__handleElevatorDone)
     mult = ToontownBattleGlobals.getCreditMultiplier(self.currentFloor)
     base.localAvatar.inventory.setBattleCreditMultiplier(mult)
開發者ID:Keithybub,項目名稱:ToonTownReviveOld,代碼行數:16,代碼來源:DistributedCogdoInterior.py


注:本文中的CogdoExecutiveSuiteMovies.CogdoExecutiveSuiteIntro類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。