internal SimpleHumanDriverAI(TrainManager.Train Train)
{
this.TimeLastProcessed = 0.0;
this.CurrentInterval = 1.0;
this.BrakeMode = false;
this.PersonalitySpeedFactor = 0.90 + 0.10 * Program.RandomNumberGenerator.NextDouble();
this.CurrentSpeedFactor = this.PersonalitySpeedFactor;
this.PowerNotchAtWhichWheelSlipIsObserved = Train.Specs.MaximumPowerNotch + 1;
if (Train.Station >= 0 & Train.StationState == TrainManager.TrainStopState.Boarding)
{
this.LastStation = Train.Station;
}
else
{
this.LastStation = -1;
}
}
private OpenBveApi.Runtime.AIResponse PerformPlugin(TrainManager.Train Train)