public Team(string name, string nation, bool isManufacturer) { Name = name; Nation = nation; IsManufacturer = isManufacturer; Crews = new Crew[MAX_CREW]; }
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)))); }
public void addCrew(Crew crew) { if (MAX_CREW > nbCrew + 1) this.Crews[nbCrew++] = crew; }
public StageTime(Crew crew ,DateTime elapsed, DateTime penalty) { }