Exemplo n.º 1
0
 public Team(string name, string nation, bool isManufacturer)
 {
     Name = name;
     Nation = nation;
     IsManufacturer = isManufacturer;
     Crews = new Crew[MAX_CREW];
 }
Exemplo n.º 2
0
 static void resultsForTeam(Stage s,Crew[] crews)
 {
     Random r = new Random(0);
     int bound = 3600 * 1000;
     int boundPenalty = 300;
     foreach (Crew c in crews)
         if(null != c) s.addStageTime(new StageTime(c, (new DateTime()).AddMilliseconds(r.Next(bound)), (new DateTime()).AddSeconds(r.Next(boundPenalty))));
 }
Exemplo n.º 3
0
 public void addCrew(Crew crew)
 {
     if (MAX_CREW > nbCrew + 1) this.Crews[nbCrew++] = crew;
 }
Exemplo n.º 4
0
 public StageTime(Crew crew ,DateTime elapsed, DateTime penalty)
 {
 }