mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 11:47:06 +01:00
refactor(physics): six more of what the rest only reads are private, under names of their own
The mass of the empty vehicle, the braking force, the outcome of a derailment,
the departure signal, the traction mode of a dual-mode vehicle and the moment
of the motors are private to physics::Vehicle like the 53 before them, read
through Mass(), Fb(), Derailed(), DepartureSignal(), TractionMode() and Mm().
Inside the class they are emptyMass, brakingForce, derailOutcome,
departureSignalOn, tractionModeSetting and motorMoment, as the plain camelCase
names were taken by locals there.
No change in behaviour: the golden traces recorded on dfb43c4f match bit for bit.
This commit is contained in:
@@ -166,7 +166,7 @@ bool physics::Vehicle::CabDeactivisation(bool const Enforce)
|
||||
CabActive = 0;
|
||||
DirAbsolute = DirActive * CabActive;
|
||||
cabMaster = false;
|
||||
DepartureSignal = false; // nie buczeć z nieaktywnej kabiny
|
||||
departureSignalOn = false; // nie buczeć z nieaktywnej kabiny
|
||||
SecuritySystem.set_enabled(false); // deactivate alerter TODO: make it part of control based cab selection
|
||||
|
||||
SendCtrlToNext(VehicleCommand::cabActivation, 0, cabOccupied); // CabActive==0!
|
||||
|
||||
Reference in New Issue
Block a user