Beispiel #1
0
 def pe_onPrebattleJoined(self):
     clientPrb = getClientPrebattle()
     if clientPrb:
         self.__prbFunctional.fini()
         self.__prbFunctional = functional.createPrbFunctional(self)
         self.__prbFunctional.init()
     else:
         LOG_ERROR('ClientPrebattle is not defined')
         self.__requestCtx.stopProcessing(result=False)
Beispiel #2
0
 def pe_onPrebattleJoined(self):
     clientPrb = getClientPrebattle()
     if clientPrb:
         self.__prbFunctional.fini()
         self.__prbFunctional = functional.createPrbFunctional(self)
         self.__prbFunctional.init()
     else:
         LOG_ERROR('ClientPrebattle is not defined')
         self.__requestCtx.stopProcessing(result=False)
Beispiel #3
0
 def start(self, ctx):
     self.__requestCtx = context._PrbRequestCtx()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     self.__queueFunctional = functional.createQueueFunctional(isInRandomQueue=ctx.isInRandomQueue)
     self._startListening()
     functional.initDevFunctional()
     if not self.__prbFunctional.hasGUIPage() and not self.__prbFunctional.isGUIProcessed():
         self.__queueFunctional.onChanged()
     events_dispatcher.updateUI()
     events_dispatcher.addCompaniesToCarousel()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         events_dispatcher.addSpecBattlesToCarousel()
Beispiel #4
0
 def start(self, ctx):
     self.__requestCtx = context._PrbRequestCtx()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     self.__unitFunctional = functional.createUnitFunctional(self)
     self.__unitFunctional.init()
     self.__queueFunctional = functional.createQueueFunctional(
         isInRandomQueue=ctx.isInRandomQueue)
     self._startListening()
     functional.initDevFunctional()
     if not self.__prbFunctional.hasGUIPage(
     ) and not self.__prbFunctional.isGUIProcessed():
         self.__queueFunctional.onChanged()
     events_dispatcher.updateUI()
     events_dispatcher.addCompaniesToCarousel()
     if GUI_SETTINGS.specPrebatlesVisible and not areSpecBattlesHidden():
         events_dispatcher.addSpecBattlesToCarousel()
Beispiel #5
0
 def ctrl_onPrebattleInited(self):
     self.__prbFunctional.fini()
     self.__requestCtx.stopProcessing(result=True)
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init(ctx=self.__requestCtx)
     events_dispatcher.updateUI()
Beispiel #6
0
 def pe_onPrebattleLeft(self):
     self.__prbFunctional.fini()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     events_dispatcher.updateUI()
Beispiel #7
0
 def ctrl_onPrebattleInited(self):
     self.__prbFunctional.fini()
     self.__requestCtx.stopProcessing(result=True)
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init(ctx=self.__requestCtx)
     events_dispatcher.updateUI()
Beispiel #8
0
 def pe_onPrebattleLeft(self):
     self.__prbFunctional.fini()
     self.__prbFunctional = functional.createPrbFunctional(self)
     self.__prbFunctional.init()
     events_dispatcher.updateUI()