private double GetTeamPoints(int team)
{
double total = 0;
List<String> dup = new List<String>();
// copy player name list
lock (fAllPlayers) {
dup.AddRange(fAllPlayers);
}
// sum up player points for specified team
foreach (String name in dup) {
PlayerModel player = GetPlayer(name);
if (player.Team != team) continue;
total = total + player.ScoreRound;
}
return total;
}