mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 13:35:26 +01:00
ce339e2b65
As asked in the review: the engine is the class SteamEngine, with its parameters, state, controls and the angle of its cranks, and its load(), raise_steam(), cool_down(), update() and starting_force(), in place of the free functions of the namespace steam. The namespace keeps the steam tables and the plain data of the engine; the parts of an update are the class's helpers in steam.cpp. The vehicle has one SteamEngine Steam in place of SteamParameters, Steam, SteamControls and SteamCrankAngle. Nothing changes in what the engine does: the unit tests and the scenario cases ty2_td_timetable and eu07_td_timetable give the very same figures. The loops of the steam tests count in whole steps rather than in floating time (Sonar S2193). Assets: none.