Home
last modified time | relevance | path

Searched refs:StageOneSpeed (Results 1 – 4 of 4) sorted by relevance

/dports/games/openbve/OpenBVE-1.8.2.1/source/TrainManager/Power/
H A DAccelerationCurve.cs26 public double StageOneSpeed; field in TrainManager.Power.BveAccelerationCurve
39 if (Speed < this.StageOneSpeed) in GetAccelerationOutput()
41 double t = Speed / this.StageOneSpeed; in GetAccelerationOutput()
47 return Multiplier * this.StageOneSpeed * this.StageOneAcceleration / Speed; in GetAccelerationOutput()
50 …return Multiplier * this.StageOneSpeed * this.StageOneAcceleration * Math.Pow(this.StageTwoSpeed, … in GetAccelerationOutput()
60 StageOneSpeed = this.StageOneSpeed, in Clone()
/dports/games/openbve/OpenBVE-1.8.2.1/source/TrainEditor/
H A DTrainDat.cs32 StageOneSpeed = 25.0, in Acceleration()
366 t.Acceleration.Entries[n].StageOneSpeed = Math.Max(a, 0.0); in Load()
370 if (t.Acceleration.Entries[n].StageTwoSpeed < t.Acceleration.Entries[n].StageOneSpeed) { in Load()
371 double x = t.Acceleration.Entries[n].StageOneSpeed; in Load()
372 t.Acceleration.Entries[n].StageOneSpeed = t.Acceleration.Entries[n].StageTwoSpeed; in Load()
789 b.Append(t.Acceleration.Entries[i].StageOneSpeed.ToString(Culture) + ","); in Save()
H A DformEditor.cs523 Train.Acceleration.Entries[i].StageOneSpeed = 25.0; in TabcontrolTabsSelecting()
616 double v = Train.Acceleration.Entries[Index].StageOneSpeed; in DrawAccelerationCurve()
666 textboxV1.Text = Train.Acceleration.Entries[i].StageOneSpeed.ToString(Culture); in ComboboxAccelerationNotchSelectedIndexChanged()
700 Train.Acceleration.Entries[i].StageOneSpeed = Math.Max(v1, 0.0); in TextboxV1TextChanged()
701 … if (Train.Acceleration.Entries[i].StageTwoSpeed < Train.Acceleration.Entries[i].StageOneSpeed) { in TextboxV1TextChanged()
702 Train.Acceleration.Entries[i].StageTwoSpeed = Train.Acceleration.Entries[i].StageOneSpeed; in TextboxV1TextChanged()
713 ….Acceleration.Entries[i].StageTwoSpeed = Math.Max(v2, Train.Acceleration.Entries[i].StageOneSpeed); in TextboxV2TextChanged()
1387 double v1 = 0.277777777777778 * Train.Acceleration.Entries[Index].StageOneSpeed; in GetAcceleration()
/dports/games/openbve/OpenBVE-1.8.2.1/source/Plugins/Train.OpenBve/Train/
H A DTrainDatParser.cs285 AccelerationCurves[n].StageOneSpeed = a * 0.277777777777778; in Parse()
292 if (AccelerationCurves[n].StageTwoSpeed < AccelerationCurves[n].StageOneSpeed) { in Parse()
294 AccelerationCurves[n].StageTwoSpeed = AccelerationCurves[n].StageOneSpeed; in Parse()
1074 if (AccelerationCurves[i].StageOneSpeed <= 0.0) { in Parse()
1075 AccelerationCurves[i].StageOneSpeed = 1.0; in Parse()
1086 if (AccelerationCurves[i].StageOneSpeed > AccelerationCurves[i].StageTwoSpeed) { in Parse()
1087 double x = 0.5 * (AccelerationCurves[i].StageOneSpeed + AccelerationCurves[i].StageTwoSpeed); in Parse()
1088 AccelerationCurves[i].StageOneSpeed = x; in Parse()