/// <summary> /// Aggregates the batting statistics. /// </summary> /// <param name="gameBattingStatistics">BattingStatisticsContainer</param> protected virtual void AggregateBattingStatistics(BattingStatisticsContainer gameBattingStatistics) { this.seasonBattingStatistics.PlateAppearances += gameBattingStatistics.PlateAppearances; this.seasonBattingStatistics.AtBats += gameBattingStatistics.AtBats; this.seasonBattingStatistics.Walks += gameBattingStatistics.Walks; this.seasonBattingStatistics.HitByPitches += gameBattingStatistics.HitByPitches; this.seasonBattingStatistics.GroundOuts += gameBattingStatistics.GroundOuts; this.seasonBattingStatistics.FlyOuts += gameBattingStatistics.FlyOuts; this.seasonBattingStatistics.Strikeouts += gameBattingStatistics.Strikeouts; this.seasonBattingStatistics.Singles += gameBattingStatistics.Singles; this.seasonBattingStatistics.Doubles += gameBattingStatistics.Doubles; this.seasonBattingStatistics.Triples += gameBattingStatistics.Triples; this.seasonBattingStatistics.Homeruns += gameBattingStatistics.Homeruns; this.seasonBattingStatistics.SacrificeFlyouts += gameBattingStatistics.SacrificeFlyouts; this.seasonBattingStatistics.StolenBases += gameBattingStatistics.StolenBases; this.seasonBattingStatistics.StealAttempts += gameBattingStatistics.StealAttempts; this.seasonBattingStatistics.Runs += gameBattingStatistics.Runs; this.seasonBattingStatistics.RBI += gameBattingStatistics.RBI; }
/// <summary> /// Initializes a new instance of the <see cref="T:StatusQuoBaseball.Base.SeasonStatisticsContainer"/> class. /// </summary> /// <param name="person">Person.</param> public SeasonStatisticsContainer(Person person) : base(person) { this.seasonBattingStatistics = new BattingStatisticsContainer((Player)this.person); this.seasonPitchingStatistics = new PitchingStatisticsContainer((Player)this.person); this.seasonFieldingStatistics = new FieldingStatisticsContainer((Player)this.person); }
/// <summary> /// Aggregates the batting statistics. /// </summary> /// <param name="gameBattingStatistics">Game batting statistics.</param> protected override void AggregateBattingStatistics(BattingStatisticsContainer gameBattingStatistics) { base.AggregateBattingStatistics(gameBattingStatistics); }