A rail vehicle running onto a switch from its frog end by the way the switch
is not set to pushes its blades over. Before, the switch was just thrown to
that way and nothing remembered it. Now the switch is marked as run through,
the log tells it once per run-through, and the scenery can react through the
memory cell and event __simulation.runthrough.
With physics.derailment new the damaged switch stays out of use for the run:
switch events no longer throw it, a vehicle running onto it from its points
pushes the loose blades over under its first axle and runs forked (the #496
limits derail it, cause split_switch), and a run-through above 60 km/h derails
the vehicle at the switch (cause run_through). In monitor mode the run does
not change; the log tells what new would do. Every switch is still taken as
trailable, as before.
report_derailment() writes the memory cell at once and only queues the
events, which run later in Events.update(). A collision derails both
vehicles in one frame, so when <A>:derailed ran, __simulation.derailment
already held B. The scenery can now declare the memory cell
<vehicle>:derailed, written the same way and with the same three fields
as __simulation.derailment, for the events of that one vehicle to read.
Documented that __simulation.derailment keeps only the last derailment
of a frame; eu07_td_off_track_end_scenery_told checks the cell of the
locomotive now.
The folder of the vehicle physics was named after the author of its first
version (2001). Its name now says what it holds, and so do its files:
McZapkie/MOVER.h, Mover.cpp -> physics/mover.h, mover.cpp
McZapkie/hamulce.h, hamulce.cpp -> physics/brakes.h, brakes.cpp
McZapkie/Oerlikon_ESt.h, .cpp -> physics/oerlikonest.h, .cpp
friction, collision, couplerphysics, derailment: same names in physics/
Every include names the folder ("physics/mover.h"); the McZapkie include
directory is gone from CMakeLists.txt. The comments and documents that
named the old paths name the new ones. The credits to McZapkie stay.
Renames only: git sees every file as renamed (98-100%). 1142/1142 tests,
golden traces exact against staging 62f7a29b.