예제 #1
0
 static void UpdateTeamData(ActiveTeam aTeam, Team team)
 {
     //Set values of the team to account for updated values in active team
     team.hits              += aTeam.hits;
     team.runs              += aTeam.score;
     team.atbatstrikeouts   += aTeam.GetStrikeoutsAtBat();
     team.pitchedstrikeouts += aTeam.GetPitchedStrikeouts();
     if (aTeam.wonGame)
     {
         team.wins += 1;
     }
     else if (aTeam.lostGame)
     {
         team.loses += 1;
     }
     else if (aTeam.tiedGame)
     {
         team.ties += 1;
     }
 }