Пример #1
0
 def startControl(self, battleCtx, arenaVisitor):
     self._personalInfo = team_overrides.PersonalInfo()
     self._battleCtx = battleCtx
     self._arenaVisitor = arenaVisitor
     exchangeCtx = _createExchangeCtx(self._battleCtx)
     self._exchangeBroker = self._createExchangeBroker(exchangeCtx)
     self._statsCollector = self._createExchangeCollector()
     if BigWorld.player().isObserver():
         self.__avatarTeam = BigWorld.player().team
Пример #2
0
 def invalidateArenaInfo(self):
     """Starts to invalidate information of arena."""
     self._personalInfo = team_overrides.PersonalInfo()
     self.__setArenaDescription()
     exchangeCtx = _createExchangeCtx(self._battleCtx)
     self._exchangeBroker = self._createExchangeBroker(exchangeCtx)
     self._statsCollector = self._createExchangeCollector()
     arenaDP = self._battleCtx.getArenaDP()
     self.invalidateVehiclesInfo(arenaDP)
     self.invalidateVehiclesStats(arenaDP)
Пример #3
0
 def startControl(self, battleCtx, arenaVisitor):
     """Starts to controlling data of arena.
     :param battleCtx: proxy to battle context.
     :param arenaVisitor: proxy to battle context.
     """
     self._personalInfo = team_overrides.PersonalInfo()
     self._battleCtx = battleCtx
     self._arenaVisitor = arenaVisitor
     exchangeCtx = _createExchangeCtx(self._battleCtx)
     self._exchangeBroker = self._createExchangeBroker(exchangeCtx)
     self._statsCollector = self._createExchangeCollector()
     if BigWorld.player().isObserver():
         self.__avatarTeam = BigWorld.player().team