示例#1
0
 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)
     self.__isTriggered = False
     self.__models = []
示例#2
0
 def onLeaveWorld(self):
     self.models = []
     if self.__checkTriggerCallbackId is not None:
         BigWorld.cancelCallback(self.__checkTriggerCallbackId)
         self.__checkTriggerCallbackId = None
     if self.__respawnCallbackId is not None:
         BigWorld.cancelCallback(self.__respawnCallbackId)
         self.__respawnCallbackId = None
     FlockLike.destroy(self)
示例#3
0
 def onLeaveWorld(self):
     self.models = []
     if self.__checkTriggerCallbackId is not None:
         BigWorld.cancelCallback(self.__checkTriggerCallbackId)
         self.__checkTriggerCallbackId = None
     if self.__respawnCallbackId is not None:
         BigWorld.cancelCallback(self.__respawnCallbackId)
         self.__respawnCallbackId = None
     FlockLike.destroy(self)
     return
示例#4
0
 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
示例#5
0
 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
示例#6
0
 def __init__(self):
     BigWorld.Entity.__init__(self)
     FlockLike.__init__(self)
     self.__checkTriggerCallbackId = None
     self.__respawnCallbackId = None
     self.__motors = []
     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
 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.flightAngleMax < self.flightAngleMin:
         self.flightAngleMax, self.flightAngleMin = self.flightAngleMin, self.flightAngleMax
     if self.flightAngleMax - self.flightAngleMin > _MATH_2PI:
         LOG_ERROR(
             'flightAngleMax or  flightAngleMin have incorrect values: arc greater than 2*pi'
         )
     self.__isTriggered = False
     self.__models = []
示例#8
0
 def __init__(self):
     BigWorld.Entity.__init__(self)
     FlockLike.__init__(self)
     self.__checkTriggerCallbackId = None
     self.__respawnCallbackId = None
     self.__motors = []
     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
     return
示例#9
0
 def onLeaveWorld(self):
     self.__models = []
     self.models = []
     FlockLike.destroy(self)
     CallbackDelayer.destroy(self)
 def onLeaveWorld(self):
     self.__removeModels()
     FlockLike.destroy(self)
     self.__models = []
     self.models = []
     CallbackDelayer.destroy(self)
示例#11
0
 def onLeaveWorld(self):
     self.__models = []
     self.models = []
     FlockLike.destroy(self)
     CallbackDelayer.destroy(self)