C# Class SimShift.Services.Speedlimiter

Limits maximum speed of vehicle to avoid reckless driving, or create realism for some vehicles (eg 255km/h limit on german saloon cars). Maximum speed can be adjusted and must be set some km/h lower than the desired speed. Aggresiveness is determined by slope.
Inheritance: IControlChainObj, IConfigurable
Exibir arquivo Open project: nlhans/SimShift Class Usage Examples

Public Methods

Method Description
ApplyParameter ( IniValueObject obj ) : void
ExportParameters ( ) : IEnumerable
GetAxis ( JoyControls c, double val ) : double
GetButton ( JoyControls c, bool val ) : bool
Requires ( JoyControls c ) : bool
ResetParameters ( ) : void
TickControls ( ) : void
TickTelemetry ( IDataMiner data ) : void

Method Details

ApplyParameter() public method

public ApplyParameter ( IniValueObject obj ) : void
obj SimShift.Utils.IniValueObject
return void

ExportParameters() public method

public ExportParameters ( ) : IEnumerable
return IEnumerable

GetAxis() public method

public GetAxis ( JoyControls c, double val ) : double
c JoyControls
val double
return double

GetButton() public method

public GetButton ( JoyControls c, bool val ) : bool
c JoyControls
val bool
return bool

Requires() public method

public Requires ( JoyControls c ) : bool
c JoyControls
return bool

ResetParameters() public method

public ResetParameters ( ) : void
return void

TickControls() public method

public TickControls ( ) : void
return void

TickTelemetry() public method

public TickTelemetry ( IDataMiner data ) : void
data IDataMiner
return void