Exemplo n.º 1
0
 /// <summary>
 /// Scores all missions.
 /// </summary>
 /// <description>
 /// If multiple errors occur, returns the first error.
 /// </description>
 /// <returns>The aggregate score.</returns>
 public ScoreInfo Score()
 {
     ScoreInfo score = new ScoreInfo();
       foreach (ScoreDelegate call in calls_)
     score.Add(call(false));
       if (score.Points < 0) score.Points = 0;
       return score;
 }
Exemplo n.º 2
0
 public void Add(ScoreInfo score)
 {
     AddPoints(score.Points);
       AddError(score.Error);
 }