Exemple #1
0
 def __init__(self, setup):
     super(ArenaDataProvider, self).__init__()
     self.__playerTeam = avatar_getter.getPlayerTeam(avatar=setup.avatar)
     self.__teamsOnArena = setup.arenaVisitor.type.getTeamsOnArenaRange()
     self.__playerVehicleID = avatar_getter.getPlayerVehicleID(setup.avatar)
     self.__vInfoVOs = {}
     self.__vStatsVOs = arena_vos.VehicleArenaStatsDict()
     self.__playersVIDs = {}
     self.__invitationStatuses = {}
     self.__squadFinder = squad_finder.createSquadFinder(setup.arenaVisitor)
     self.__description = arena_descrs.createDescription(setup.arenaVisitor)
Exemple #2
0
 def __init__(self, arenaUniqueID, common, personal, players, vehicles, avatars):
     super(_ReusableInfo, self).__init__()
     self.__arenaUniqueID = arenaUniqueID
     self.__clientIndex = 0
     self.__premiumState = PREMIUM_STATE.NONE
     self.__common = common
     self.__personal = personal
     self.__players = players
     self.__vehicles = vehicles
     self.__avatars = avatars
     self.__squadFinder = squad_finder.createSquadFinder(self.__common.arenaVisitor)
     self.__findSquads()
Exemple #3
0
 def __init__(self, setup):
     super(ArenaDataProvider, self).__init__()
     self.__playerTeam = avatar_getter.getPlayerTeam(avatar=setup.avatar)
     self.__teamsOnArena = range(1, setup.arenaVisitor.type.getMaxTeamsOnArena() + 1)
     self.__playerVehicleID = avatar_getter.getPlayerVehicleID(setup.avatar)
     self.__vInfoVOs = {}
     self.__vStatsVOs = arena_vos.VehicleArenaStatsDict()
     self.__playersVIDs = {}
     self.__invitationStatuses = {}
     self.__squadFinder = squad_finder.createSquadFinder(setup.arenaVisitor, self.__teamsOnArena)
     self.__description = arena_descrs.createDescription(setup.arenaVisitor)
     settings.addUnknownContourIconToCache()
Exemple #4
0
 def __init__(self, arenaUniqueID, common, personal, players, vehicles,
              avatars):
     super(_ReusableInfo, self).__init__()
     self.__arenaUniqueID = arenaUniqueID
     self.__clientIndex = 0
     self.__premiumState = PREMIUM_STATE.NONE
     self.__premiumPlusState = PREMIUM_STATE.NONE
     self.__isAddXPBonusApplied = False
     self.__common = common
     self.__personal = personal
     self.__players = players
     self.__vehicles = vehicles
     self.__avatars = avatars
     self.__squadFinder = squad_finder.createSquadFinder(
         self.__common.arenaVisitor)
     self.__findSquads()
     self.__battlePassProgress = BattlePassProgress(
         self.__common.arenaBonusType,
         **self.__personal.avatar.extensionInfo)