def _getEpicRandomTipIterator(): tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_EPICRANDOM_ENUM) if tipSize > 0: items = range(tipSize) return rnd_choice_loop(*items) else: return None
def _getRankedTipIterator(): tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_RANKED_ENUM) if tipSize > 0: items = range(tipSize) return rnd_choice_loop(*items) else: return None
def getTipsIterator(arenaGuiType, battlesCount, vehicleType, vehicleNation, vehicleLvl): tipsItems = _getConditionedTips(arenaGuiType, battlesCount, vehicleType, vehicleNation, vehicleLvl) if len(tipsItems) > 0: return rnd_choice_loop(*tipsItems) else: return None
def _getEpicRandomTipIterator(): tipSize = len(RES_ICONS.MAPS_ICONS_BATTLELOADING_TIPS_EPICRANDOM_ENUM) raise tipSize == len(TIPS.EPICRANDOM_ALL_BODY_ENUM) or AssertionError if not tipSize == len(TIPS.EPICRANDOM_ALL_TITLE_ENUM): raise AssertionError items = tipSize > 0 and range(tipSize) return rnd_choice_loop(*items) else: return None
def __getTipsIterator(self, battlesCount): tipsItems = _getEpicBattleConditionedTips(battlesCount) return rnd_choice_loop(*tipsItems) if tipsItems > 0 else None