Exemplo n.º 1
0
 def __addTeamBasePositions(self):
     positions = self._arenaVisitor.type.getTeamBasePositionsIterator()
     for team, position, number in positions:
         if team == self.__personalTeam:
             symbol = _S_NAME.ALLY_TEAM_BASE
         else:
             symbol = _S_NAME.ENEMY_TEAM_BASE
         uid = getUniqueTeamOrControlPointID(team, number)
         self.__addBaseEntry(symbol, position, uid)
 def __addTeamBasePositions(self):
     positions = self.sessionProvider.arenaVisitor.type.getTeamBasePositionsIterator(
     )
     for team, position, number in positions:
         if team == self.__personalTeam:
             owner = 'ally'
         else:
             owner = 'enemy'
         baseID = getUniqueTeamOrControlPointID(team, number)
         self.__addBaseOrControlPointMarker(owner, position, baseID)
 def __addControlPoints(self):
     points = self.sessionProvider.arenaVisitor.type.getControlPointsIterator(
     )
     for position, number in points:
         baseID = getUniqueTeamOrControlPointID(0, number)
         self.__addBaseOrControlPointMarker('neutral', position, baseID)
 def _getIdByBaseNumber(self, team, number):
     return getUniqueTeamOrControlPointID(team, number)
 def __addControlPoints(self):
     points = self._arenaVisitor.type.getControlPointsIterator()
     for position, number in points:
         uid = getUniqueTeamOrControlPointID(0, number)
         self._TeamsOrControlsPointsPlugin__addBaseEntry(
             _S_NAME.CONTROL_POINT, position, uid)