예제 #1
0
 public static TeamAnalysis GetTeamGradeAnalysis(Team team)
 {
     TeamAnalysis analysis = new TeamAnalysis();
     int cumGrade = 0;
     foreach (Game game in team.GetGames()) {
         TeamGameAnalysis teamGameAnalysis = new TeamGameAnalysis(team, game);
         cumGrade += teamGameAnalysis.GameGrade;
         teamGameAnalysis.CumulativeGrade = cumGrade;
         analysis.AddTeamGameAnalysis(teamGameAnalysis);
     }
     return analysis;
 }
예제 #2
0
 public void AddTeamGameAnalysis(TeamGameAnalysis teamGameAnalysis)
 {
     _teamGameAnalyses.Add(teamGameAnalysis);
 }