Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="key">StatTypes</param>
 /// <param name="value">StatSheet</param>
 public void AddStatSheet(StatTypes key, StatSheet value)
 {
     if (!this.stats.ContainsKey(key))
     {
         this.stats.Add(key, value);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="team">Team</param>
 /// <param name="stats">List</param>
 private void ReportEndOfGameStats(Team team)
 {
     Player [] players = team.ToArray();
     for (int i = 0; i < players.Length; ++i)
     {
         StatSheet.Aggregate(players[i][StatTypes.Run], gameStats[team, i][StatTypes.Run]);
         StatSheet.Aggregate(players[i][StatTypes.Receive], gameStats[team, i][StatTypes.Receive]);
         StatSheet.Aggregate(players[i][StatTypes.Pass], gameStats[team, i][StatTypes.Pass]);
         StatSheet.Aggregate(players[i][StatTypes.Kicking], gameStats[team, i][StatTypes.Kicking]);
     }
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="ret">StatSheet</param>
 /// <param name="sheets">StatSheet[]</param>
 /// <returns>StatSheet</returns>
 public static StatSheet Aggregate(StatSheet ret, params StatSheet[] sheets)
 {
     return(ret.AggregateStatSheets(sheets));
 }