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


Python DistributedInteractive.DistributedInteractive类代码示例

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


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

示例1: __init__

 def __init__(self, cr):
     DistributedInteractive.__init__(self, cr)
     self.interactRadius = 15
     self.diskRadius = 25
     self.difficulty = 0
     self.repairBenchDifficultyTextNode = None
     self.repairBenchDifficultyNodePath = None
开发者ID:Puggyblue999,项目名称:PiratesOfTheCarribeanOnline,代码行数:7,代码来源:DistributedRepairBench.py

示例2: exitUse

 def exitUse(self):
     DistributedInteractive.exitUse(self)
     if self.avGameState:
         if localAvatar.getGameState() == 'DinghyInteract':
             localAvatar.b_setGameState(self.avGameState)
             if self.avGameState in [
                 'WaterRoam',
                 'BattleWaterRoam']:
                 localAvatar.motionFSM.setWaterState(True, True)
                 base.cr.interactionMgr.start()
             
         
         self.avGameState = None
     
     if self.camIval:
         self.camIval.pause()
         self.camIval = None
     
     if self.camTask:
         taskMgr.remove(self.camTask)
         self.camTask = None
     
     if self.shipSelection:
         self.shipSelection.destroy()
         self.shipSelection = None
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:25,代码来源:DistributedDinghy.py

示例3: __init__

 def __init__(self, cr, proximityText):
     NodePath.__init__(self, self.__class__.__name__)
     DistributedInteractive.__init__(self, cr)
     self.holiday = ""
     self.interactRadius = 10
     self.interactMode = 0
     self.proximityText = proximityText
开发者ID:Puggyblue999,项目名称:PiratesOfTheCarribeanOnline,代码行数:7,代码来源:DistributedHolidayObject.py

示例4: disable

 def disable(self):
     DistributedInteractive.disable(self)
     if self.invReq:
         DistributedInventoryBase.cancelGetInventory(localAvatar.getInventoryId())
         self.invReq = None
     
     self.removeChildren()
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:7,代码来源:DistributedDinghy.py

示例5: enterWaiting

 def enterWaiting(self):
     DistributedInteractive.enterWaiting(self)
     self.avGameState = localAvatar.getGameState()
     if self.avGameState == 'Battle':
         self.avGameState = 'LandRoam'
     
     localAvatar.b_setGameState('DinghyInteract', [
         self])
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:8,代码来源:DistributedDinghy.py

示例6: loadTargetIndicator

 def loadTargetIndicator(self):
     DistributedInteractive.loadTargetIndicator(self)
     if self.locationId == 0:
         self.disk.setZ(render, 0.01)
         self.disk.setP(render, 0)
         self.disk.setR(render, 0)
         self.disk.clearBin()
         self.disk.clearDepthTest()
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:8,代码来源:DistributedDinghy.py

示例7: disable

 def disable(self):
     self._statePushes.destroy()
     self._statePushes = None
     if self.userId == localAvatar.doId:
         self.stopRepairing()
     
     DistributedInteractive.disable(self)
     self.detachNode()
开发者ID:Puggyblue999,项目名称:PiratesOfTheCarribeanOnline,代码行数:8,代码来源:DistributedShipRepairSpot.py

示例8: enterUse

 def enterUse(self):
     DistributedInteractive.enterUse(self)
     if self.shipSelection:
         self.shipSelection.destroy()
     
     self.shipSelection = ShipDeployPanel(PLocalizer.ChooseShipTitle, self.requestExit, siegeTeam = self._siegeTeam)
     self.shipSelection.hide()
     self.selectionSent = False
     self.startCamIval()
     self.offerOwnOptions(localAvatar.getInventory().getShipDoIdList())
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:10,代码来源:DistributedDinghy.py

示例9: delete

 def delete(self):
     if self.camIval:
         self.camIval.pause()
         self.camIval = None
     
     if self.camTask:
         taskMgr.remove(self.camTask)
         self.camTask = None
     
     DistributedInteractive.delete(self)
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:10,代码来源:DistributedDinghy.py

示例10: requestInteraction

 def requestInteraction(self, avId, interactType = 0, instant = 0):
     if not base.launcher.getPhaseComplete(5):
         self.showDownloadAcknowledge()
         return None
     
     self.cleanupDinghyDisabledDialog()
     if localAvatar.zombie and avId == localAvatar.doId:
         localAvatar.guiMgr.createWarning(PLocalizer.ZombieNoBoats, PiratesGuiGlobals.TextFG6)
         return None
     
     DistributedInteractive.requestInteraction(self, avId, interactType, instant)
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:11,代码来源:DistributedDinghy.py

示例11: __init__

 def __init__(self, cr):
     NodePath.__init__(self, 'DistributedBuriedTreasure')
     DistributedInteractive.__init__(self, cr)
     self.showTreasureIval = None
     self.raiseTreasureIval = None
     self.currentDepth = 0.0
     self.startingDepth = 0.0
     self.visZone = ''
     self.orientation = 0.0
     self.chest = None
     self.spotRoot = None
     self.spot = None
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:12,代码来源:DistributedBuriedTreasure.py

示例12: __init__

 def __init__(self, cr):
     NodePath.__init__(self, 'DistributedSearchableContainer')
     DistributedInteractive.__init__(self, cr)
     self.searchTime = None
     self.type = None
     self.containerColorR = 1.0
     self.containerColorG = 1.0
     self.containerColorB = 1.0
     self.containerColorA = 1.0
     self.sphereScale = 10
     self.container = None
     self.startSearchTime = 0.0
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:12,代码来源:DistributedSearchableContainer.py

示例13: defaultFilter

 def defaultFilter(self, request, args):
     if request == 'Use':
         if self.getCurrentOrNextState() != 'Waiting':
             return None
         
     
     return DistributedInteractive.defaultFilter(self, request, args)
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:7,代码来源:DistributedDinghy.py

示例14: __init__

 def __init__(self, cr):
     NodePath.__init__(self, 'DistributedDinghy')
     DistributedInteractive.__init__(self, cr)
     self.interactRadius = 25
     self.diskRadius = 45
     self.dinghyDisabledDialog = None
     self.teamFullDialog = None
     self.locationId = 0
     self.shipSelection = None
     self.camIval = None
     self.camTask = None
     self.avGameState = None
     self.invReq = None
     self.selectionSent = False
     self.ownShipSelection = None
     self.accept('clientLogout', self.cleanupTeamFullDialog)
     self.accept('shardSwitchComplete', self.cleanupTeamFullDialog)
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:17,代码来源:DistributedDinghy.py

示例15: exitWaiting

 def exitWaiting(self):
     DistributedInteractive.exitWaiting(self)
     if self.newState != 'Use' and self.avGameState:
         if localAvatar.getGameState() == 'DinghyInteract':
             localAvatar.b_setGameState(self.avGameState)
             if self.avGameState in [
                 'WaterRoam',
                 'BattleWaterRoam']:
                 localAvatar.motionFSM.setWaterState(True, True)
                 base.cr.interactionMgr.start()
             
         
         self.avGameState = None
     
     if self.invReq:
         DistributedInventoryBase.cancelGetInventory(localAvatar.getInventoryId())
         self.invReq = None
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:17,代码来源:DistributedDinghy.py


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