Пример #1
0
 def getTeamState(self, team = None):
     result = prb_items.TeamStateInfo(0)
     if team is None:
         roster = self.getRosterKey()
         if roster is not PREBATTLE_ROSTER.UNKNOWN:
             team, _ = decodeRoster(self.getRosterKey())
     teamStates = prb_getters.getPrebattleTeamStates()
     if team is not None and team < len(teamStates):
         result = prb_items.TeamStateInfo(teamStates[team])
     return result
Пример #2
0
 def getTeamState(self, team = None):
     """
     Gets state of team. If team is not specified than gets state of team
     for current player. The 0 means state of team not found.
     Args:
         team: team number
     """
     return prb_items.TeamStateInfo(0)
Пример #3
0
 def getTeamState(self, team=None):
     return prb_items.TeamStateInfo(0)