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


Python CogdoFlyingPlayer.CogdoFlyingPlayer类代码示例

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


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

示例1: start

 def start(self):
     CogdoFlyingPlayer.start(self)
     self.toon.collisionsOff()
     self.flyerCollisions.setAvatar(self.toon)
     self.flyerCollisions.setCollisionsActive(1)
     self._levelBounds = self._level.getBounds()
     self.introGuiSeq.start()
     self.request('Running')
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:8,代码来源:CogdoFlyingLocalPlayer.py

示例2: exit

 def exit(self):
     self.request('Inactive')
     CogdoFlyingPlayer.exit(self)
     self._cameraMgr.disable()
     self.flyerCollisions.setCollisionsActive(0)
     self.flyerCollisions.setAvatar(None)
     taskMgr.remove('delayedLandOnFuelPlatform')
     taskMgr.remove('delayedLandOnWinPlatform')
     self.ignoreAll()
     return
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:10,代码来源:CogdoFlyingLocalPlayer.py

示例3: handleEnterGatherable

 def handleEnterGatherable(self, gatherable, elapsedTime):
     CogdoFlyingPlayer.handleEnterGatherable(self, gatherable, elapsedTime)
     if gatherable.type == Globals.Level.GatherableTypes.Memo:
         self.handleEnterMemo(gatherable)
     elif gatherable.type == Globals.Level.GatherableTypes.Propeller:
         self.handleEnterPropeller(gatherable)
     elif gatherable.type == Globals.Level.GatherableTypes.LaffPowerup:
         self.handleEnterLaffPowerup(gatherable)
     elif gatherable.type == Globals.Level.GatherableTypes.InvulPowerup:
         self.handleEnterInvulPowerup(gatherable)
开发者ID:vincent15k,项目名称:Toontown-House,代码行数:10,代码来源:CogdoFlyingLocalPlayer.py

示例4: setBackpackState

 def setBackpackState(self, state):
     if state == self.backpackState:
         return
     CogdoFlyingPlayer.setBackpackState(self, state)
     if state in Globals.Gameplay.BackpackStates:
         if state == Globals.Gameplay.BackpackStates.Normal:
             messenger.send(CogdoFlyingGuiManager.ClearMessageDisplayEventName)
         elif state == Globals.Gameplay.BackpackStates.Targeted:
             messenger.send(CogdoFlyingGuiManager.EagleTargetingLocalPlayerEventName)
         elif state == Globals.Gameplay.BackpackStates.Attacked:
             messenger.send(CogdoFlyingGuiManager.EagleAttackingLocalPlayerEventName)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:11,代码来源:CogdoFlyingLocalPlayer.py

示例5: handleEnterGatherable

 def handleEnterGatherable(self, gatherable, elapsedTime):
     CogdoFlyingPlayer.handleEnterGatherable(self, gatherable, elapsedTime)
     if gatherable.type == Globals.Level.GatherableTypes.Memo:
         self.handleEnterMemo(gatherable)
     elif gatherable.type == Globals.Level.GatherableTypes.Propeller:
         self.handleEnterPropeller(gatherable)
     elif gatherable.type == Globals.Level.GatherableTypes.LaffPowerup:
         self._getLaffSfx.play()
     elif gatherable.type == Globals.Level.GatherableTypes.InvulPowerup:
         self._getRedTapeSfx.play()
         messenger.send(CogdoFlyingGuiManager.InvulnerableEventName)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:11,代码来源:CogdoFlyingLocalPlayer.py

示例6: unload

 def unload(self):
     self.toon.showName()
     self.toon.collisionsOn()
     self._destroyEventIval()
     self._destroyEnemyHitIval()
     CogdoFlyingPlayer.unload(self)
     self._fanSfx.stop()
     self.flyerCollisions.deleteCollisions()
     del self.flyerCollisions
     self.ignoreAll()
     taskMgr.remove('delayedLandOnPlatform')
     taskMgr.remove('delayedLandOnWinPlatform')
     self.checkpointPlatform = None
     self._cameraMgr.disable()
     del self._cameraMgr
     del self.game
     self._inputMgr.destroy()
     del self._inputMgr
     self.introGuiSeq.clearToInitial()
     del self.introGuiSeq
     if self.goSadSequence:
         self.goSadSequence.clearToInitial()
         del self.goSadSequence
     if self.coolDownAfterHitInterval:
         self.coolDownAfterHitInterval.clearToInitial()
         del self.coolDownAfterHitInterval
     if self.deathInterval:
         self.deathInterval.clearToInitial()
         del self.deathInterval
     if self.spawnInterval:
         self.spawnInterval.clearToInitial()
         del self.spawnInterval
     if self.outOfTimeInterval:
         self.outOfTimeInterval.clearToInitial()
         del self.outOfTimeInterval
     if self.winInterval:
         self.winInterval.clearToInitial()
         del self.winInterval
     if self.waitingForWinInterval:
         self.waitingForWinInterval.clearToInitial()
         del self.waitingForWinInterval
     if self.waitingForWinSeq:
         self.waitingForWinSeq.clearToInitial()
         del self.waitingForWinSeq
     del self.activeFans[:]
     del self.fansStillHavingEffect[:]
     self.fanIndex2ToonVelocity.clear()
     self.orthoWalk.stop()
     self.orthoWalk.destroy()
     del self.orthoWalk
     self.destroySfx()
     return
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:52,代码来源:CogdoFlyingLocalPlayer.py

示例7: resetToon

 def resetToon(self, resetFuel = True):
     CogdoFlyingPlayer.resetToon(self)
     self.resetVelocities()
     del self.activeFans[:]
     del self.fansStillHavingEffect[:]
     self.fanIndex2ToonVelocity.clear()
     self._fanSfx.stop()
     spawnPos = self.checkpointPlatform.getSpawnPosForPlayer(self.getPlayerNumber(), render)
     self.activeWhirlwind = None
     self.toon.setPos(render, spawnPos)
     self.toon.setHpr(render, 0, 0, 0)
     if resetFuel:
         self.resetFuel()
     self.isHeadInCeiling = False
     self.isToonOnFloor = True
     return
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:16,代码来源:CogdoFlyingLocalPlayer.py

示例8: bladeLost

 def bladeLost(self):
     CogdoFlyingPlayer.bladeLost(self)
     self._bladeBreakSfx.play(volume=0.35)
     self._guiMgr.bladeLost()
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:4,代码来源:CogdoFlyingLocalPlayer.py

示例9: setBlades

 def setBlades(self, fuelState):
     CogdoFlyingPlayer.setBlades(self, fuelState)
     self._guiMgr.setBlades(fuelState)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:3,代码来源:CogdoFlyingLocalPlayer.py

示例10: resetBlades

 def resetBlades(self):
     CogdoFlyingPlayer.resetBlades(self)
     self._guiMgr.resetBlades()
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:3,代码来源:CogdoFlyingLocalPlayer.py

示例11: __init__

 def __init__(self, toon, game, level, guiMgr):
     CogdoFlyingPlayer.__init__(self, toon)
     self.defaultTransitions = {'Inactive': ['FreeFly', 'Running'],
      'FreeFly': ['Inactive',
                  'OutOfTime',
                  'Death',
                  'FlyingUp',
                  'Running',
                  'HitWhileFlying',
                  'InWhirlwind'],
      'FlyingUp': ['Inactive',
                   'OutOfTime',
                   'Death',
                   'FreeFly',
                   'Running',
                   'HitWhileFlying',
                   'InWhirlwind'],
      'InWhirlwind': ['Inactive',
                      'OutOfTime',
                      'Death',
                      'FreeFly',
                      'HitWhileFlying'],
      'HitWhileFlying': ['Inactive',
                         'OutOfTime',
                         'Death',
                         'FreeFly',
                         'InWhirlwind'],
      'Death': ['Inactive', 'OutOfTime', 'Spawn'],
      'Running': ['Inactive',
                  'OutOfTime',
                  'FreeFly',
                  'FlyingUp',
                  'Refuel',
                  'WaitingForWin',
                  'HitWhileRunning'],
      'HitWhileRunning': ['Inactive',
                          'OutOfTime',
                          'Death',
                          'Running',
                          'FreeFly'],
      'Spawn': ['Inactive',
                'OutOfTime',
                'Running',
                'WaitingForWin'],
      'OutOfTime': ['Inactive', 'Spawn'],
      'WaitingForWin': ['Inactive', 'Win'],
      'Win': ['Inactive']}
     self.game = game
     self._level = level
     self._guiMgr = guiMgr
     self._inputMgr = CogdoFlyingInputManager()
     self._cameraMgr = CogdoFlyingCameraManager(camera, render, self, self._level)
     self.velocity = Vec3(0.0, 0.0, 0.0)
     self.instantaneousVelocity = Vec3(0.0, 0.0, 0.0)
     self.controlVelocity = Vec3(0.0, 0.0, 0.0)
     self.fanVelocity = Vec3(0.0, 0.0, 0.0)
     self.activeFans = []
     self.fansStillHavingEffect = []
     self.fanIndex2ToonVelocity = {}
     self.legalEagleInterestRequest = {}
     self.activeWhirlwind = None
     self.oldPos = Vec3(0.0, 0.0, 0.0)
     self.checkpointPlatform = None
     self.isHeadInCeiling = False
     self.isToonOnFloor = False
     self.fuel = 0.0
     self.score = 0
     self.postSpawnState = 'Running'
     self.didTimeRunOut = False
     self.hasPressedCtrlYet = False
     self.hasPickedUpFirstPropeller = False
     self.surfacePoint = None
     self.legalEagleHitting = False
     self.propState = None
     self.broadcastPeriod = Globals.AI.BroadcastPeriod
     self.initSfx()
     self.initLocalPlayerIntervals()
     self.initCollisions()
     self.initOrthoWalker()
     self.playerNumber = -1
     self.fuel = 0.0
     self._guiMgr.setFuel(self.fuel)
     self.setCheckpointPlatform(self._level.startPlatform)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:83,代码来源:CogdoFlyingLocalPlayer.py

示例12: disable

 def disable(self):
     CogdoFlyingPlayer.disable(self)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:2,代码来源:CogdoFlyingLocalPlayer.py

示例13: enable

 def enable(self):
     CogdoFlyingPlayer.enable(self)
     self.toon.hideName()
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:3,代码来源:CogdoFlyingLocalPlayer.py

示例14: handleDebuffPowerup

 def handleDebuffPowerup(self, pickupType, elapsedTime):
     self._invulDebuffSfx.play()
     CogdoFlyingPlayer.handleDebuffPowerup(self, pickupType, elapsedTime)
     messenger.send(CogdoFlyingGuiManager.ClearMessageDisplayEventName)
开发者ID:NostalgicTTR,项目名称:Toontown-Infinite-2016-Leak,代码行数:4,代码来源:CogdoFlyingLocalPlayer.py


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