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


Python CallbackDelayer.__init__方法代码示例

本文整理汇总了Python中AvatarInputHandler.CallbackDelayer.CallbackDelayer.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CallbackDelayer.__init__方法的具体用法?Python CallbackDelayer.__init__怎么用?Python CallbackDelayer.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AvatarInputHandler.CallbackDelayer.CallbackDelayer的用法示例。


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

示例1: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self):
     CallbackDelayer.__init__(self)
     self.__alwaysShowAim = False
     self.__alwaysShowAimKey = None
     self.__showMarkersKey = None
     sec = self._readCfg()
     self.onCameraChanged = Event()
     self.onPostmortemVehicleChanged = Event()
     self.onSetReloading = Event()
     self.onSetReloadingPercents = Event()
     self.__isArenaStarted = False
     self.__isStarted = False
     self.__targeting = _Targeting()
     self.__vertScreenshotCamera = _VertScreenshotCamera()
     self.__ctrls = dict()
     self.__killerVehicleID = None
     self.__isAutorotation = True
     self.__prevModeAutorotation = None
     self.__isSPG = False
     self.__isATSPG = False
     self.__setupCtrls(sec)
     self.__curCtrl = self.__ctrls[_CTRLS_FIRST]
     self.__eMode = _CTRLS_FIRST
     self.__detachCount = 0
     return
开发者ID:krzcho,项目名称:WOTDecompiled,代码行数:27,代码来源:__init__.py

示例2: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, configDataSec):
     CallbackDelayer.__init__(self)
     TimeDeltaMeter.__init__(self)
     self.__cam = BigWorld.FreeCamera()
     self.__cam.invViewProvider = Math.MatrixProduct()
     self.__ypr = Math.Vector3()
     self.__position = Math.Vector3()
     self.__defaultFov = BigWorld.projection().fov
     self.__velocity = Math.Vector3()
     self.__isVerticalVelocitySeparated = False
     self.__yprVelocity = Math.Vector3()
     self.__zoomVelocity = 0.0
     self.__inertiaEnabled = False
     self.__movementInertia = None
     self.__rotationInertia = None
     self.__movementSensor = None
     self.__verticalMovementSensor = None
     self.__rotationSensor = None
     self.__zoomSensor = None
     self.__targetRadiusSensor = None
     self.__mouseSensitivity = 0.0
     self.__scrollSensitivity = 0.0
     self.__rotateAroundPointEnabled = False
     self.__rotationRadius = 40.0
     self.__alignerToLand = _AlignerToLand()
     self.__predefinedVelocities = {}
     self.__predefinedVerticalVelocities = {}
     self.__keySwitches = {}
     self.__readCfg(configDataSec)
     self.__aim = None
     self.__basisMProv = _VehicleBounder()
     self.__entityPicker = _VehiclePicker()
     return
开发者ID:webiumsk,项目名称:WoT,代码行数:35,代码来源:videocamera.py

示例3: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, dataSec, aim, binoculars):
     CallbackDelayer.__init__(self)
     self.__impulseOscillator = None
     self.__movementOscillator = None
     self.__noiseOscillator = None
     self.__dynamicCfg = CameraDynamicConfig()
     self.__accelerationSmoother = None
     self.__readCfg(dataSec)
     if aim is None or binoculars is None:
         return
     else:
         self.__cam = BigWorld.FreeCamera()
         self.__zoom = self.__cfg['zoom']
         self.__curSense = 0
         self.__curScrollSense = 0
         self.__waitVehicleCallbackId = None
         self.__onChangeControlMode = None
         self.__aimingSystem = SniperAimingSystem(dataSec)
         self.__aim = weakref.proxy(aim)
         self.__binoculars = binoculars
         self.__defaultAimOffset = self.__aim.offset()
         self.__defaultAimOffset = (self.__defaultAimOffset[0], self.__defaultAimOffset[1])
         self.__crosshairMatrix = createCrosshairMatrix(offsetFromNearPlane=self.__dynamicCfg['aimMarkerDistance'])
         self.__prevTime = BigWorld.time()
         self.__autoUpdateDxDyDz = Vector3(0, 0, 0)
         return
开发者ID:webiumsk,项目名称:WOT0.9.10,代码行数:28,代码来源:snipercamera.py

示例4: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, dataSec, aim):
     CallbackDelayer.__init__(self)
     TimeDeltaMeter.__init__(self)
     self.__shiftKeySensor = None
     self.__movementOscillator = None
     self.__impulseOscillator = None
     self.__noiseOscillator = None
     self.__dynamicCfg = CameraDynamicConfig()
     self.__accelerationSmoother = None
     self.__readCfg(dataSec)
     if aim is None:
         return
     else:
         self.__aim = weakref.proxy(aim)
         self.__cam = BigWorld.HomingCamera()
         aimOffset = self.__aim.offset()
         self.__cam.aimPointClipCoords = Vector2(aimOffset)
         self.__curSense = 0
         self.__curScrollSense = 0
         self.__defaultAimOffset = (aimOffset[0], aimOffset[1])
         self.__postmortemMode = False
         self.__modelsToCollideWith = []
         self.__onChangeControlMode = None
         self.__aimingSystem = None
         self.__focalPointDist = 1.0
         self.__autoUpdateDxDyDz = Vector3(0.0)
         return
开发者ID:webiumsk,项目名称:WOT0.9.10,代码行数:29,代码来源:arcadecamera.py

示例5: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, updatePeriod = 0.0):
     CallbackDelayer.__init__(self)
     self.__updatePeriod = updatePeriod
     self.__currentSpeedState = self.__SPEED_IDLE
     self.__keyOffCalled = False
     self.__manualSound = None
     self.__gearSound = None
     self.__gearDamagedParam = None
     self.__manGearDamagedParam = None
     self.__gearKeyOffParam = None
     self.__stateTable = ((None,
       self.__startManualSound,
       self.__initHighSpeed,
       None),
      (self.__stopManualSound,
       None,
       self.__initHighSpeed,
       None),
      (self.__stopManualSound,
       self.__startManualSoundFromFast,
       None,
       None),
      (self.__stopGearSoundPlaying,
       self.__startManualSoundFromFast,
       None,
       self.__checkGearSound))
     return
开发者ID:webiumsk,项目名称:WOT-0.9.12-CT,代码行数:29,代码来源:vehiclegunrotator.py

示例6: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, updatePeriod=0.0):
     CallbackDelayer.__init__(self)
     TimeDeltaMeter.__init__(self)
     self.__updatePeriod = updatePeriod
     self.__turretSound = None
     self.__prevTurretYaw = None
     return
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:9,代码来源:vehiclegunrotator.py

示例7: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self):
     BigWorld.Entity.__init__(self)
     FlockLike.__init__(self)
     CallbackDelayer.__init__(self)
     self.flightAngleMin = math.radians(self.flightAngleMin)
     self.flightAngleMax = math.radians(self.flightAngleMax)
     if self.flightAngleMin < 0:
         self.flightAngleMin += math.ceil(abs(self.flightAngleMin) / (math.pi * 2)) * math.pi * 2
     elif self.flightAngleMin > math.pi * 2:
         self.flightAngleMin -= math.floor(self.flightAngleMin / (math.pi * 2)) * math.pi * 2
     self.__isTriggered = False
开发者ID:webiumsk,项目名称:WOT0.9.10,代码行数:13,代码来源:flockexotic.py

示例8: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, dataSection, avatarInputHandler):
     CallbackDelayer.__init__(self)
     self.__preferredPos = Vector3(0, 0, 0)
     self.__aih = weakref.proxy(avatarInputHandler)
     self.__cam = StrategicCamera.StrategicCamera(dataSection["camera"], None)
     self.__isEnabled = False
     self.__updateInterval = 0.1
     self.__activeSelector = _DefaultStrikeSelector(Vector3(0, 0, 0), None)
     self.__equipmentID = None
     self.__aimingMode = 0
     MapCaseControlMode.prevCtlMode = [Vector3(0, 0, 0), "", 0]
开发者ID:kblw,项目名称:wot_client,代码行数:13,代码来源:mapcasemode.py

示例9: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, beginExplosionPos, endExplosionPos, areaWidth, velocity):
     CallbackDelayer.__init__(self)
     self.model = BigWorld.Model('helpers/models/unit_cube.model')
     BigWorld.addModel(self.model)
     self.model.position = beginExplosionPos
     linearHomer = BigWorld.LinearHomer()
     self.model.addMotor(linearHomer)
     linearHomer.align = mathUtils.createSRTMatrix((areaWidth, 5, 1), (0.0, 0, 0), Vector3(0, 0, 0))
     linearHomer.acceleration = 0
     linearHomer.velocity = velocity
     linearHomer.target = mathUtils.createTranslationMatrix(endExplosionPos)
     linearHomer.proximityCallback = self.__onDeath
开发者ID:webiumsk,项目名称:WOT-0.9.12-CT,代码行数:14,代码来源:combatequipmentmanager.py

示例10: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self):
     if not constants.IS_DEVELOPMENT:
         return
     CallbackDelayer.__init__(self)
     self.__items = {}
     self.__avgInfo = {}
     self.__textGui = GUI.Text()
     GUI.addRoot(self.__textGui)
     self.__textGui.position = (0, -0.25, 0)
     self.__textGui.multiline = True
     self.clear()
     self.__tickNames = {}
开发者ID:kblw,项目名称:wot_client,代码行数:14,代码来源:valuetracker.py

示例11: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
    def __init__(self, equipmentID, wingControlPoints):
        CallbackDelayer.__init__(self)
        self.__withdrawn = False
        self.__bombers = []
        modelName, soundEvent = self.__readData(equipmentID)
        speed = self.__calculateSpeed(wingControlPoints[0], wingControlPoints[1])
        flatVectors = map(self.__calculateDirAndNorm, (wingControlPoints[0].direction, wingControlPoints[1].direction))
        times = map(self.__convertTime, (wingControlPoints[0].time, wingControlPoints[1].time))
        for offset in self.__offsets:
            points = []
            for i in xrange(2):
                point = wingControlPoints[i]
                realOffset = self.__calculateOffset(offset, flatVectors[i])
                points.append(CurveControlPoint(point.position + realOffset, speed * point.direction, times[i]))

            bomberDesc = BomberDesc(modelName, soundEvent, points[0], points[1])
            self.__bombers.append(Bomber(bomberDesc))
开发者ID:webiumsk,项目名称:WOT0.9.10,代码行数:19,代码来源:bomberswing.py

示例12: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, dataSec, aim):
     CallbackDelayer.__init__(self)
     self.__positionOscillator = None
     self.__positionNoiseOscillator = None
     self.__dynamicCfg = CameraDynamicConfig()
     self.__readCfg(dataSec)
     self.__cam = BigWorld.CursorCamera()
     self.__curSense = self.__cfg['sensitivity']
     self.__onChangeControlMode = None
     self.__aimingSystem = StrategicAimingSystem(self.__cfg['distRange'][0], StrategicCamera._CAMERA_YAW)
     self.__prevTime = BigWorld.time()
     self.__aimOffsetFunc = None
     if aim is None:
         self.__aimOffsetFunc = lambda x = None: (0, 0)
     else:
         self.__aimOffsetFunc = aim.offset
     self.__autoUpdatePosition = False
     self.__dxdydz = Vector3(0, 0, 0)
     self.__needReset = 0
开发者ID:kblw,项目名称:wot_client,代码行数:21,代码来源:strategiccamera.py

示例13: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, curShotInfoFunc, dispersionUpdateFunc, desiredShotInfoFunc):
     _SPGFlashGunMarker.__init__(self, curShotInfoFunc, dispersionUpdateFunc, _SuperGunMarker.GUN_MARKER_CLIENT)
     CallbackDelayer.__init__(self)
     self.__updateInterval = 0.0 if BattleReplay.g_replayCtrl.isPlaying else 0.1
     self.__desiredShotInfoFunc = desiredShotInfoFunc
     self.__trajectoryDrawer = BigWorld.wg_trajectory_drawer()
开发者ID:kblw,项目名称:wot_client,代码行数:8,代码来源:artyhitmarker.py

示例14: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, avatar):
     CallbackDelayer.__init__(self)
     self.__avatar = weakref.proxy(avatar)
     self.__bFollowCamera = False
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:avatarpositioncontrol.py

示例15: __init__

# 需要导入模块: from AvatarInputHandler.CallbackDelayer import CallbackDelayer [as 别名]
# 或者: from AvatarInputHandler.CallbackDelayer.CallbackDelayer import __init__ [as 别名]
 def __init__(self, position, equipment):
     CallbackDelayer.__init__(self)
     self.equipment = equipment
     self.delayCallback(self._TICK_DELAY, self.__tick)
开发者ID:webiumsk,项目名称:WOT0.9.10,代码行数:6,代码来源:mapcasemode.py


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