本文整理汇总了Python中direct.distributed.DistributedNode.DistributedNode.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python DistributedNode.__init__方法的具体用法?Python DistributedNode.__init__怎么用?Python DistributedNode.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类direct.distributed.DistributedNode.DistributedNode
的用法示例。
在下文中一共展示了DistributedNode.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'DistributedTunnel')
StagedObject.__init__(self, StagedObject.OFF)
self.uniqueId = ''
self.fakeZoneId = PiratesGlobals.FakeZoneId
self.GridLOD = { }
self.visNodes = { }
self.geom = None
self.envEffects = None
self._links = { }
self.areaWorldZone = [
None,
None]
self.areaNode = [
None,
None]
self._DistributedTunnel__loadedArea = None
self.areaIndexLoading = None
self.pendingAreaUnload = False
self.pendingArea = None
self.minimapObj = None
self.builder = GridAreaBuilder.GridAreaBuilder(self)
self.connectorNodes = [
'portal_connector_1',
'portal_connector_2']
self.connectorNodePosHpr = []
self.ambientNames = [
None,
None]
self.avatarZoneContext = None
self.floorIndex = -1
self._inTransition = False
self.ownHandles = []
示例2: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
# you have to initialize NodePath.__init__() here because it is
# not called in DistributedNode.__init__()
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'player')
self.player = Player(os.getenv('COMPUTERNAME'))
示例3: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'GameArea')
MappableArea.__init__(self)
StagedObject.__init__(self, StagedObject.OFF)
self.uniqueId = ''
self.geom = None
self.funnelDisplayName = None
self.previousDisplayName = None
self.gameFSM = None
self.links = []
self.pendingSetupConnector = { }
self.connectors = { }
self.connectorInterests = set()
self.envEffects = None
self.spawnTriggers = []
self.blockerColls = []
self.islandWaterParameters = None
self.swamp_water = None
self.entryTime = [
None,
0]
self.timeCheck = 0
self.minimap = None
self.footprintNode = None
self.popupDialog = None
self.minimapArea = 0
self.laMinimapObj = None
self.footstepSound = None
self.environment = None
self.connectorsHereCallback = None
示例4: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
# Let the derived classes instantiate the NodePath
self.visAvatar = None
self.gridVisContext = None
# Do we have grid lines visualized?
self._onOffState = False
if __debug__:
self.haveGridLines = 0
示例5: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
ExperimentBarrelBase.__init__(self)
DistributedNode.__init__(self, cr)
self.barrel = None
self.icon = None
self.collSphere = None
self.collNode = None
self.collNodePath = None
self.animTrack = None
开发者ID:Toontown-Electrified,项目名称:src-feature-the-experiment,代码行数:12,代码来源:DistributedExperimentBarrel.py
示例6: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
self.kart = None
self.rope = None
self.pod = None
self.barrels = []
self.numBarrels = 0
self.triggerNP = None
self.mg = None
return
示例7: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'shop')
self.cr = cr
self.items = {}
self.destroyEvent = 'destroyShop-' + str(random.randint(0, 1000))
self.inShop = False
self.clerk = None
self.shopNP = None
return
示例8: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
self.cr = cr
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'trolley')
self.destination = ''
self.filledSpots = 0
self.leaving = False
self.gone = False
self.destination_lbl = None
self.movingSfx = loader.loadSfx('phase_4/audio/sfx/SZ_trolley_away.ogg')
self.bellSfx = loader.loadSfx('phase_4/audio/sfx/SZ_trolley_bell.ogg')
return
示例9: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'ShipDeployer')
self.minRadius = 0
self.spacing = 0
self.maxRadius = 0
self.heading = 0
self.minSphere = None
self.maxSphereSoft = None
self.maxSphereHard = None
self.deploySpheres = []
self.lockedMessage = 0
self.outerBarrierState = True
示例10: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
self.fsm = ClassicFSM('DistributedCityCart', [State('off', self.enterOff, self.exitOff), State('pathFollow', self.enterPathFollow, self.exitPathFollow), State('collision', self.enterCollision, self.exitCollision)], 'off', 'off')
self.fsm.enterInitialState()
self.suitInCar = None
self.cart = None
self.honkSfxPath = 'phase_14/audio/sfx/cogtropolis_citycar_driveby_horn.mp3'
self.cartModelPath = 'phase_12/models/bossbotHQ/Coggolf_cart3.bam'
self.moPaths = ['phase_14/models/paths/ct-citycar-drivepath-1.egg',
'phase_14/models/paths/ct-citycar-drivepath-2.egg',
'phase_14/models/paths/ct-citycar-drivepath-3.egg',
'phase_14/models/paths/ct-citycar-drivepath-4.egg',
'phase_14/models/paths/ct-citycar-drivepath-5.egg',
'phase_14/models/paths/ct-citycar-drivepath-6.egg']
self.moPath = None
self.soundEngineLoop = None
self.soundDriveByHorn = None
self.ivalTDisplace = None
self.pathIndex = None
self.wheelSpinTrack = None
self.collNodePath = None
self.soundDriveBy = None
return
示例11: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self)
示例12: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
self.visAvatar = None
self.gridVisContext = None
self._onOffState = False
return
示例13: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
self.cannon = None
self.avatarInTurret = None
return
示例14: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
NodePath.__init__(self, 'droppableCollectableObject')
self.collSensorNodePath = None
self.collRayNodePath = None
return
示例15: __init__
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import __init__ [as 别名]
def __init__(self, cr):
DistributedNode.__init__(self, cr)
Char.Char.__init__(self)
self.fsm = ClassicFSM.ClassicFSM('DistributedDisneyChar', [State.State('off', self.enterOff, self.exitOff), State.State('walking', self.enterWalking, self.exitWalking), State.State('')])