예제 #1
0
 def __getTeamOverrides(self, vo, arenaDP):
     team = vo.team
     if team in self.__reusable:
         isEnemy, overrides = self.__reusable[team]
     else:
         isEnemy = arenaDP.isEnemyTeam(team)
         overrides = team_overrides.makeOverrides(isEnemy, team, self._personalInfo, self._arenaVisitor, isReplayPlaying=BattleReplay.g_replayCtrl.isPlaying)
         self.__reusable[team] = (isEnemy, overrides)
     return (isEnemy, overrides)
예제 #2
0
 def __getTeamOverrides(self, vo, arenaDP):
     team = vo.team
     if team in self.__reusable:
         isEnemy, overrides = self.__reusable[team]
     else:
         isEnemy = self.__isEnemyTeam(arenaDP, team)
         overrides = team_overrides.makeOverrides(isEnemy, team, self._personalInfo, self._arenaVisitor, isReplayPlaying=self.sessionProvider.isReplayPlaying)
         self.__reusable[team] = (isEnemy, overrides)
     return (isEnemy, overrides)