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


Python CogdoExecutiveSuiteIntro.play方法代碼示例

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


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

示例1: DistributedCogdoInterior

# 需要導入模塊: from CogdoExecutiveSuiteMovies import CogdoExecutiveSuiteIntro [as 別名]
# 或者: from CogdoExecutiveSuiteMovies.CogdoExecutiveSuiteIntro import play [as 別名]

#.........這裏部分代碼省略.........

    def _doStashEntranceElevator(self, haveElev, doStash):
        if haveElev:
            if doStash:
                self.elevIn.stash()
            else:
                self.elevIn.unstash()

    def d_elevatorDone(self):
        self.sendUpdate('elevatorDone', [])

    def d_reserveJoinDone(self):
        self.sendUpdate('reserveJoinDone', [])

    def enterOff(self, ts = 0):
        messenger.send('sellbotFieldOfficeChanged', [False])
        return None

    def exitOff(self):
        return None

    def enterWaitForAllToonsInside(self, ts = 0):
        base.transitions.fadeOut(0)

    def exitWaitForAllToonsInside(self):
        return None

    def enterGame(self, ts = 0):
        base.cr.forbidCheesyEffects(1)

    def exitGame(self):
        base.cr.forbidCheesyEffects(0)

    def __playElevator(self, ts, name, callback):
        SuitHs = []
        SuitPositions = []

        if self.floorModel:
            self.floorModel.removeNode()
            self.floorModel = None

        if self.cage:
            self.cage = None

        if self.currentFloor == 0:
            SuitHs = self.BottomFloor_SuitHs
            SuitPositions = self.BottomFloor_SuitPositions

        if self.isBossFloor(self.currentFloor):
            self.notify.info('__playElevator: currentFloor %s is boss' % self.currentFloor)
            self.barrelRoom.unload()
            if self.FOType:
                penthouseName = SUITE_DICT.get(self.FOType)
                for i in xrange(4):
                    self.floorModel = loader.loadModel('phase_5/models/cogdominium/%s' % penthouseName)

            self.cage = self.floorModel.find('**/cage')
            pos = self.cage.getPos()
            self.cagePos = []
            for height in self.cageHeights:
                self.cagePos.append(Point3(pos[0], pos[1], height))

            self.cageDoor = self.floorModel.find('**/cage_door')
            self.cageDoor.wrtReparentTo(self.cage)
            if self.FOType:
                paintingModelName = PAINTING_DICT.get(self.FOType)
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:70,代碼來源:DistributedCogdoInterior.py


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