Example #1
0
 def __createDefaultEntity(self, ctx):
     if gui.prb_control.prb_getters.isInBootcampAccount():
         return BootcampEntity()
     else:
         created = self.__createDefaultByStorage(ctx)
         if created is None:
             created = RandomEntity()
         return created
Example #2
0
 def __createDefaultEntity(self, ctx):
     """
     Creates default entity for prequeue.
     Args:
         ctx: creation request context.
     
     Returns:
         new prebattle prequeue entity
     """
     created = self.__createDefaultByStorage(ctx)
     if created is None:
         if ctx.hasFlags(_FLAG.FALLOUT):
             created = NoFalloutEntity()
         else:
             created = RandomEntity()
     return created
 def __createDefaultEntity(self, ctx):
     """
     Creates default entity for prequeue.
     Args:
         ctx: creation request context.
     
     Returns:
         new prebattle prequeue entity
     """
     if gui.prb_control.prb_getters.isInBootcampAccount():
         return BootcampEntity()
     else:
         created = self.__createDefaultByStorage(ctx)
         if created is None:
             if ctx.hasFlags(_FLAG.FALLOUT):
                 created = NoFalloutEntity()
             else:
                 created = RandomEntity()
         return created
 def __createDefaultEntity(self):
     if prb_getters.isInBootcampAccount():
         return BootcampEntity()
     if self.pveStorage.isModeSelected():
         return SandboxEntity()
     if self.rankedStorage.isModeSelected():
         return RankedEntity()
     if self.epicStorage.isModeSelected():
         return EpicEntity()
     if self.battleRoyaleStorage.isModeSelected():
         return self.__createByQueueType(QUEUE_TYPE.BATTLE_ROYALE)
     if self.mapboxStorage.isModeSelected():
         return MapboxEntity()
     if self.mapsTrainingStorage.isModeSelected():
         return MapsTrainingEntity()
     if self.eventBattlesStorage.isModeSelected():
         return EventBattleEntity()
     if self.funRandomStorage.isModeSelected():
         return FunRandomEntity()
     prbEntity = self.__createByQueueType(self.recentArenaStorage.queueType)
     return prbEntity if prbEntity else RandomEntity()