本文整理汇总了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
示例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
示例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
示例4: disable
def disable(self):
DistributedInteractive.disable(self)
if self.invReq:
DistributedInventoryBase.cancelGetInventory(localAvatar.getInventoryId())
self.invReq = None
self.removeChildren()
示例5: enterWaiting
def enterWaiting(self):
DistributedInteractive.enterWaiting(self)
self.avGameState = localAvatar.getGameState()
if self.avGameState == 'Battle':
self.avGameState = 'LandRoam'
localAvatar.b_setGameState('DinghyInteract', [
self])
示例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()
示例7: disable
def disable(self):
self._statePushes.destroy()
self._statePushes = None
if self.userId == localAvatar.doId:
self.stopRepairing()
DistributedInteractive.disable(self)
self.detachNode()
示例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())
示例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)
示例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)
示例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
示例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
示例13: defaultFilter
def defaultFilter(self, request, args):
if request == 'Use':
if self.getCurrentOrNextState() != 'Waiting':
return None
return DistributedInteractive.defaultFilter(self, request, args)
示例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)
示例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