Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #3
0
 public void RemoveScout(Scout scoutToRemove)
 {
     Members.Remove(scoutToRemove);
 }
Beispiel #4
0
 //METHODS
 public void AddScout(Scout scoutToAdd)
 {
     Members.Add(scoutToAdd);
 }