当前位置: 首页>>代码示例>>Python>>正文


Python DistributedPartyActivity.DistributedPartyActivity类代码示例

本文整理汇总了Python中toontown.parties.DistributedPartyActivity.DistributedPartyActivity的典型用法代码示例。如果您正苦于以下问题:Python DistributedPartyActivity类的具体用法?Python DistributedPartyActivity怎么用?Python DistributedPartyActivity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DistributedPartyActivity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: joinRequestDenied

 def joinRequestDenied(self, reason):
     DistributedPartyActivity.joinRequestDenied(self, reason)
     self.notify.debug('joinRequestDenied')
     if reason == PartyGlobals.DenialReasons.Full:
         self.showMessage(TTLocalizer.PartyTeamActivityTeamFull)
     elif reason == PartyGlobals.DenialReasons.Default:
         self.showMessage(TTLocalizer.PartyTeamActivityJoinDenied % self.getTitle())
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:7,代码来源:DistributedPartyTeamActivity.py

示例2: unload

 def unload(self):
     DistributedPartyTrampolineActivity.notify.debug('unload')
     if self.hopOnAnim and self.hopOnAnim.isPlaying():
         self.hopOnAnim.finish()
     if self.hopOffAnim and self.hopOffAnim.isPlaying():
         self.hopOffAnim.finish()
     if self.beginRoundInterval and self.beginRoundInterval.isPlaying():
         self.beginRoundInterval.finish()
     if self.flashTextInterval and self.flashTextInterval.isPlaying():
         self.flashTextInterval.finish()
     if self.heightTextInterval and self.heightTextInterval.isPlaying():
         self.heightTextInterval.finish()
     self.timer.stop()
     DistributedPartyActivity.unload(self)
     taskMgr.remove(self.uniqueName('TrampolineActivity.updateTask'))
     taskMgr.remove(self.uniqueName('TrampolineActivity.remoteUpdateTask'))
     self.ignoreAll()
     del self.heightTextInterval
     del self.beginRoundInterval
     del self.hopOnAnim
     del self.hopOffAnim
     del self.flashTextInterval
     if hasattr(self, 'beanAnims'):
         self.cleanupJellyBeans()
     self.quitEarlyButton.destroy()
     del self.quitEarlyButton
     del self.gui
     del self.activityFSM
     del self.animFSM
     return
开发者ID:CalebSmith376,项目名称:src,代码行数:30,代码来源:DistributedPartyTrampolineActivity.py

示例3: __init__

 def __init__(self, cr):
     DistributedPartyActivity.__init__(
         self, cr, PartyGlobals.ActivityIds.PartyCatch, PartyGlobals.ActivityTypes.HostInitiated, wantRewardGui=True
     )
     self.setUsesSmoothing()
     self.setUsesLookAround()
     self._sNumGen = SerialNumGen()
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:7,代码来源:DistributedPartyCatchActivity.py

示例4: generate

 def generate(self):
     DistributedPartyActivity.generate(self)
     self._doneCannons = False
     self._avId2trajectoryInfo = {}
     self._remoteToonFlyTaskName = 'remoteToonFlyTask-%s' % self.doId
     taskMgr.add(self._remoteToonFlyTask, self._remoteToonFlyTaskName, priority=45)
     self.d_cloudsColorRequest()
开发者ID:LittleNed,项目名称:Toontown-Online-No-TTR,代码行数:7,代码来源:DistributedPartyCannonActivity.py

示例5: unload

    def unload(self):
        DistributedPartyActivity.unload(self)
        self.activityFSM.request('Disabled')
        if self.localToonDanceSequence is not None:
            self.localToonDanceSequence.finish()
        if self.localToonDancing:
            self.__localStopDancing()
        self.ignoreAll()
        if self.discoBallSequence is not None:
            self.discoBallSequence.finish()
        if self.danceFloorSequence is not None:
            self.danceFloorSequence.finish()
        del self.danceFloorSequence
        del self.discoBallSequence
        del self.localToonDanceSequence
        if self.danceFloor is not None:
            self.danceFloor.removeNode()
            self.danceFloor = None
        self.__destroyOrthoWalk()
        for toonId in self.dancingToonFSMs.keys():
            self.dancingToonFSMs[toonId].destroy()
            del self.dancingToonFSMs[toonId]

        del self.dancingToonFSMs
        del self.cameraParallel
        del self.currentCameraMode
        if self.keyCodes is not None:
            self.keyCodes.destroy()
            del self.keyCodes
        del self.activityFSM
        del self.gui
        del self.localPatternsMatched
        return
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:33,代码来源:DistributedPartyDanceActivityBase.py

示例6: generateInit

 def generateInit(self):
     self.notify.debug('generateInit')
     DistributedPartyActivity.generateInit(self)
     self.keyCodes = KeyCodes(patterns=self.dancePatternToAnims.keys())
     self.gui = KeyCodesGui(self.keyCodes)
     self.__initOrthoWalk()
     self.activityFSM = DanceActivityFSM(self)
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:7,代码来源:DistributedPartyDanceActivityBase.py

示例7: unload

 def unload(self):
     self.notify.debug('unload')
     DistributedPartyActivity.unload(self)
     if self.shadowNode is not None:
         self.shadowNode.removeNode()
         del self.shadowNode
     if self.splash is not None:
         self.splash.destroy()
         del self.splash
     if self.dustCloud is not None:
         self.dustCloud.destroy()
         del self.dustCloud
     del self.sndHitHouse
     del self.sndHitGround
     del self.sndHitWater
     del self.sndBounce1
     del self.sndBounce2
     del self.sndBounce3
     if self.localFlyingToon:
         self.__resetToon(self.localFlyingToon)
         self.localFlyingToon.loop('neutral')
         self.localFlyingToon.setPlayRate(1.0, 'run')
         self.localFlyingToon = None
     self.ignoreAll()
     return
开发者ID:LittleNed,项目名称:Toontown-Online-No-TTR,代码行数:25,代码来源:DistributedPartyCannonActivity.py

示例8: unload

    def unload(self):
        DistributedPartyCatchActivity.notify.debug('unload')
        self.finishAllDropIntervals()
        self.destroyOrthoWalk()
        DistributedPartyActivity.unload(self)
        self.stopDropTask()
        del self.activityFSM
        del self.__textGen
        for avId in self.toonSDs.keys():
            if self.toonSDs.has_key(avId):
                toonSD = self.toonSDs[avId]
                toonSD.unload()

        del self.toonSDs
        self.treesAndFence.removeNode()
        del self.treesAndFence
        self.dropShadow.removeNode()
        del self.dropShadow
        base.cr.parentMgr.unregisterParent(self._avatarNodePathParentToken)
        for model in self.dropObjModels.values():
            model.removeNode()

        del self.dropObjModels
        del self.sndGoodCatch
        del self.sndOof
        del self.sndAnvilLand
        del self.sndPerfect
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:27,代码来源:DistributedPartyCatchActivity.py

示例9: setToonsPlaying

 def setToonsPlaying(self, toonIds):
     self.notify.info('setToonsPlaying(%s)' % (toonIds,))
     DistributedPartyActivity.setToonsPlaying(self, toonIds)
     if self.isLocalToonInActivity() and base.localAvatar.doId not in toonIds:
         if self.toonSDs.has_key(base.localAvatar.doId):
             self.takeLocalAvatarOutOfActivity()
             self.toonSDs[base.localAvatar.doId].fsm.request('notPlaying')
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:7,代码来源:DistributedPartyCatchActivity.py

示例10: _enableCollisions

 def _enableCollisions(self):
     DistributedPartyActivity._enableCollisions(self)
     self._enteredTree = False
     self.accept('enter' + self.catchTreeZoneEvent, self._toonMayHaveEnteredTree)
     self.accept('again' + self.catchTreeZoneEvent, self._toonMayHaveEnteredTree)
     self.accept('exit' + self.catchTreeZoneEvent, self._toonExitedTree)
     self.accept(DistributedPartyCannonActivity.LOCAL_TOON_LANDED_EVENT, self._handleCannonLanded)
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:7,代码来源:DistributedPartyCatchActivity.py

示例11: exitRequestDenied

 def exitRequestDenied(self, reason):
     DistributedPartyActivity.exitRequestDenied(self, reason)
     if reason == PartyGlobals.DenialReasons.Default:
         self.showMessage(TTLocalizer.PartyTeamActivityExitDenied % self.getTitle())
     if self.isLocalToonPlaying and (self.isState('WaitToStart') or self.isState('WaitForEnough')):
         self.teamActivityGui.enableExitButton()
         if self._canSwitchTeams:
             self.teamActivityGui.enableSwitchButton()
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:8,代码来源:DistributedPartyTeamActivity.py

示例12: setState

 def setState(self, newState, timestamp, data):
     DistributedPartyActivity.setState(self, newState, timestamp)
     if newState == 'WaitToStart':
         self.activityFSM.request(newState, timestamp)
     elif newState == 'Conclusion':
         self.activityFSM.request(newState, data)
     else:
         self.activityFSM.request(newState)
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:8,代码来源:DistributedPartyTeamActivity.py

示例13: postHopOn

 def postHopOn(self):
     self.toon.setH(self.toon.getH() + 90.0)
     self.toon.dropShadow.reparentTo(self.surface)
     self.timeLeftToSimulate = 0.0
     self.doSimulateStep = False
     taskMgr.add(self.updateTask, self.uniqueName('TrampolineActivity.updateTask'))
     base.setCellsActive(base.leftCells, False)
     base.setCellsActive(base.bottomCells, False)
     DistributedPartyActivity.startRules(self)
开发者ID:CalebSmith376,项目名称:src,代码行数:9,代码来源:DistributedPartyTrampolineActivity.py

示例14: unload

 def unload(self):
     DistributedPartyActivity.unload(self)
     self.gui.unload()
     if self.music is not None:
         self.music.stop()
     self.jukebox.stop()
     self.jukebox.delete()
     self.jukebox = None
     self.ignoreAll()
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:9,代码来源:DistributedPartyJukeboxActivityBase.py

示例15: __init__

 def __init__(self, cr, actId, phaseToMusicData):
     DistributedPartyActivity.__init__(self, cr, actId, ActivityTypes.Continuous)
     self.phaseToMusicData = phaseToMusicData
     self.jukebox = None
     self.gui = None
     self.tunes = []
     self.music = None
     self.currentSongData = None
     self.localQueuedSongInfo = None
     self.localQueuedSongListItem = None
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:10,代码来源:DistributedPartyJukeboxActivityBase.py


注:本文中的toontown.parties.DistributedPartyActivity.DistributedPartyActivity类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。