16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 04:39:18 +02:00

refactoring: cab logic partially separated from cab activation

This commit is contained in:
tmj-fstate
2019-09-25 18:21:42 +02:00
parent 41834c4d4c
commit 2f5b6dee70
2 changed files with 148 additions and 189 deletions

View File

@@ -157,6 +157,12 @@ class TTrain {
void update_sounds( double const Deltatime );
void update_sounds_runningnoise( sound_source &Sound );
void update_sounds_radio();
inline
end cab_to_end() const {
return (
iCabn == 2 ?
end::rear :
end::front ); }
// command handlers
// NOTE: we're currently using universal handlers and static handler map but it may be beneficial to have these implemented on individual class instance basis