예제 #1
0
 def __setStaticData(self):
     settings = self.prbFunctional.getSettings()
     extraData = settings[PREBATTLE_SETTING_NAME.EXTRA_DATA]
     self.__arenaName = functions.getArenaShortName(settings[PREBATTLE_SETTING_NAME.ARENA_TYPE_ID])
     self.__firstTeam, self.__secondTeam = formatters.getPrebattleOpponents(extraData)
     battlesLimit = settings[PREBATTLE_SETTING_NAME.BATTLES_LIMIT]
     winsLimit = settings[PREBATTLE_SETTING_NAME.WINS_LIMIT]
     self.__battlesWinsString = '%d/%s' % (battlesLimit, str(winsLimit or '-'))
     self.__eventName = formatters.getPrebattleEventName(extraData)
     self.__sessionName = formatters.getPrebattleSessionName(extraData)
     description = formatters.getPrebattleDescription(extraData)
     if description:
         self.__sessionName = '%s\n%s' % (self.__sessionName, description)
예제 #2
0
 def __updateInfo(self, settings, props):
     extraData = settings[PREBATTLE_SETTING_NAME.EXTRA_DATA]
     arenaName = functions.getArenaShortName(settings[PREBATTLE_SETTING_NAME.ARENA_TYPE_ID])
     firstTeam, secondTeam = formatters.getPrebattleOpponents(extraData)
     battlesLimit = settings[PREBATTLE_SETTING_NAME.BATTLES_LIMIT]
     winsLimit = settings[PREBATTLE_SETTING_NAME.WINS_LIMIT]
     battlesWinsString = '%d/%s' % (battlesLimit, str(winsLimit or '-'))
     eventName = formatters.getPrebattleEventName(extraData)
     sessionName = formatters.getPrebattleSessionName(extraData)
     description = formatters.getPrebattleDescription(extraData)
     if description:
         sessionName = '%s\n%s' % (sessionName, description)
     self.as_setInfoS(battlesWinsString, arenaName, firstTeam, secondTeam, props.getBattlesScore(), eventName, sessionName)
예제 #3
0
 def __updateInfo(self, settings, props):
     extraData = settings[PREBATTLE_SETTING_NAME.EXTRA_DATA]
     arenaName = functions.getArenaShortName(
         settings[PREBATTLE_SETTING_NAME.ARENA_TYPE_ID])
     firstTeam, secondTeam = formatters.getPrebattleOpponents(extraData)
     battlesLimit = settings[PREBATTLE_SETTING_NAME.BATTLES_LIMIT]
     winsLimit = settings[PREBATTLE_SETTING_NAME.WINS_LIMIT]
     battlesWinsString = '%d/%s' % (battlesLimit, str(winsLimit or '-'))
     eventName = formatters.getPrebattleEventName(extraData)
     sessionName = formatters.getPrebattleSessionName(extraData)
     description = formatters.getPrebattleDescription(extraData)
     if description:
         sessionName = '%s\n%s' % (sessionName, description)
     self.as_setInfoS(battlesWinsString, arenaName, firstTeam, secondTeam,
                      props.getBattlesScore(), eventName, sessionName)
예제 #4
0
 def __setStaticData(self):
     settings = self.prbEntity.getSettings()
     extraData = settings[PREBATTLE_SETTING_NAME.EXTRA_DATA]
     self.__arenaName = functions.getArenaShortName(settings[PREBATTLE_SETTING_NAME.ARENA_TYPE_ID])
     self.__firstTeam, self.__secondTeam = formatters.getPrebattleOpponents(extraData)
     battlesLimit = settings[PREBATTLE_SETTING_NAME.BATTLES_LIMIT]
     winsLimit = settings[PREBATTLE_SETTING_NAME.WINS_LIMIT]
     self.__battlesWinsString = '%d/%s' % (battlesLimit, str(winsLimit or '-'))
     self.__eventName = formatters.getPrebattleEventName(extraData)
     clansToInvite = settings['clansToInvite']
     self.__isTurnamentBattle = not clansToInvite
     self.__sessionName = formatters.getPrebattleSessionName(extraData)
     description = formatters.getPrebattleDescription(extraData)
     if description:
         self.__sessionName = '%s\n%s' % (self.__sessionName, description)