Ejemplo n.º 1
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
Ejemplo n.º 2
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
Ejemplo n.º 3
0
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)
Ejemplo n.º 4
0
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)