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


Python DistributedNode.__init__方法代码示例

本文整理汇总了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 = []
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:36,代码来源:DistributedTunnel.py

示例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'))
开发者ID:mcgillcomp361,项目名称:COMP361Project,代码行数:9,代码来源:distributedPlayer.py

示例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
开发者ID:TTGhost,项目名称:POTCOR-src,代码行数:33,代码来源:DistributedGameArea.py

示例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
开发者ID:AdrianF98,项目名称:Toontown-2-Revised,代码行数:11,代码来源:DistributedCartesianGrid.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:12,代码来源:DistributedDeliveryTruck.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:12,代码来源:DistributedShop.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:14,代码来源:DistributedTrolley.py

示例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
开发者ID:Puggyblue999,项目名称:PiratesOfTheCarribeanOnline,代码行数:15,代码来源:DistributedShipDeployer.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:25,代码来源:DistributedCityCart.py

示例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)
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:5,代码来源:DistributedElectionCamera.py

示例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
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:8,代码来源:DistributedCartesianGrid.pyc.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:7,代码来源:DistributedToonCannon.py

示例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
开发者ID:coginvasion,项目名称:src,代码行数:8,代码来源:DistributedDroppableCollectableObject.py

示例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('')])
开发者ID:coginvasion,项目名称:src,代码行数:6,代码来源:DistributedDisneyChar.py


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