/// <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; }
public void Add(ScoreInfo score) { AddPoints(score.Points); AddError(score.Error); }