Beispiel #1
0
 def join(self, ctx, callback = None):
     result = True
     if not isinstance(ctx, pre_queue_ctx.JoinModeCtx):
         result = False
         LOG_ERROR('Invalid context to join historical mode', ctx)
     else:
         g_prbCtrlEvents.onPreQueueFunctionalCreated(QUEUE_TYPE.HISTORICAL, False, None)
     if callback:
         callback(result)
Beispiel #2
0
 def join(self, ctx, callback=None):
     result = True
     if not isinstance(ctx, pre_queue_ctx.JoinModeCtx):
         result = False
         LOG_ERROR('Invalid context to join historical mode', ctx)
     else:
         g_prbCtrlEvents.onPreQueueFunctionalCreated(
             QUEUE_TYPE.HISTORICAL, False, None)
     if callback:
         callback(result)
Beispiel #3
0
 def doAction(self, action = None, dispatcher = None):
     result = False
     if action is not None:
         actionName = action.actionName or _PAN.UNDEFINED
         if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED) and g_currentVehicle.item.isOnlyForEventBattles:
             actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE
         if actionName in self.CREATE_QUEUE_BY_ACTION:
             queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName]
             g_prbCtrlEvents.onPreQueueFunctionalCreated(queueType, doAction, action)
             result = True
     return result
Beispiel #4
0
 def doAction(self, action = None, dispatcher = None):
     result = False
     if action is not None:
         actionName = action.actionName or _PAN.UNDEFINED
         if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED) and getFalloutCtrl().isSelected():
             actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE
         if actionName in self.CREATE_QUEUE_BY_ACTION:
             queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName]
             g_prbCtrlEvents.onPreQueueFunctionalCreated(queueType, doAction, action)
             result = True
     return result
Beispiel #5
0
 def doAction(self, action=None, dispatcher=None):
     result = False
     if action is not None:
         actionName = action.actionName or _PAN.UNDEFINED
         if actionName in (_PAN.JOIN_RANDOM_QUEUE, _PAN.UNDEFINED
                           ) and getFalloutCtrl().isSelected():
             actionName = _PAN.JOIN_EVENT_BATTLES_QUEUE
         if actionName in self.CREATE_QUEUE_BY_ACTION:
             queueType, doAction = self.CREATE_QUEUE_BY_ACTION[actionName]
             g_prbCtrlEvents.onPreQueueFunctionalCreated(
                 queueType, doAction, action)
             result = True
     return result
Beispiel #6
0
 def _goToFunctional(self):
     g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)
Beispiel #7
0
 def _goToFunctional(self):
     g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)
     g_eventDispatcher.showFalloutWindow()
Beispiel #8
0
 def _goToFunctional(self):
     g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)
     g_eventDispatcher.showFalloutWindow()
Beispiel #9
0
 def _goToFunctional(self):
     g_prbCtrlEvents.onPreQueueFunctionalCreated(self.__queueType)