Exemple #1
0
 public Corps(Scout captain, List <Group> groups)
 {
     this.captain = captain;
     this.groups  = groups;
     groups.ForEach(x => TotalMarks += x.TotalMarks);
     TotalMarks += this.captain.Marks;
 }
Exemple #2
0
 //CONSTRUCTORS
 public Group(string name, Scout leader, List <Scout> members)
 {
     this.name    = name;
     this.leader  = leader;
     this.members = members;
     members.ForEach(x => TotalMarks += x.Marks);
     TotalMarks += this.leader.Marks;
 }
Exemple #3
0
 public void RemoveScout(Scout scoutToRemove)
 {
     Members.Remove(scoutToRemove);
 }
Exemple #4
0
 //METHODS
 public void AddScout(Scout scoutToAdd)
 {
     Members.Add(scoutToAdd);
 }