Esempio n. 1
0
 public void SetPaceParameters(PracticeTimesCollection Collection, int raceIndex)
 {
     PaceParameters[PaceParameterType.FuelLoadP2] = Data.Settings.DefaultP2Fuel;
     PaceParameters[PaceParameterType.TopSpeed]   = Collection.TopSpeed;
     PitStopLoss = Data.Tracks[raceIndex].pitStopLoss;
     PaceParameters[PaceParameterType.FuelConsumption]   = Data.Tracks[raceIndex].fuelPerLap;
     PaceParameters[PaceParameterType.TyreDelta]         = GetTyreDelta(Collection.PracticeSessionStints);
     PaceParameters[PaceParameterType.FuelEffect]        = GetFuelEffect(Collection.PracticeSessionStints);
     PaceParameters[PaceParameterType.PrimeDegradation]  = GetPrimeDegradation(Collection.PracticeSessionStints);
     PaceParameters[PaceParameterType.OptionDegradation] = GetOptionDegradation(Collection.PracticeSessionStints);
     PaceParameters[PaceParameterType.Pace] = GetLowFuelPace(Collection.PracticeSessionStints);
 }
Esempio n. 2
0
 public void SetPaceParameters(PracticeTimesCollection PracticeTimes)
 {
     this.PracticeTimes = PracticeTimes;
     PaceParameters     = new PaceParameterCollection(PracticeTimes);
 }
Esempio n. 3
0
 public void SetPracticeTimes(List <Stint>[] PracticeSessionStints, float TopSpeed, int GridPosition)
 {
     PracticeTimes = new PracticeTimesCollection(PracticeSessionStints, TopSpeed, GridPosition);
 }
Esempio n. 4
0
 public PaceParameterCollection(PracticeTimesCollection Collection)
 {
     paceParameters = new Dictionary <PaceParameterType, float>();
     SetPaceParameters(Collection, Data.RaceIndex);
 }