private static int compareTeamByVictory(Team a, Team b) { float aVictory = a.pourcentageVictory(); float bVictory = b.pourcentageVictory(); if (aVictory > bVictory) { return 1; } else if (bVictory > aVictory) { return -1; } else { return 0; } }
public Pool(Team teamA, Team teamB) { this._teamA = teamA; this._teamB = teamB; }
public bool addTeam(Team team) { int count = this._teams.Count; if (count >= NB_TEAM_MAX_PER_PLAYER) { return false; } this._teams.Add(team); return true; }