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

cab controls active state visualization support, cab control initialization on cab change fix

This commit is contained in:
tmj-fstate
2019-10-20 13:52:37 +02:00
parent d3797c67df
commit 5a85786a42
5 changed files with 276 additions and 151 deletions

View File

@@ -158,11 +158,14 @@ class TTrain {
void update_sounds_runningnoise( sound_source &Sound );
void update_sounds_radio();
inline
end cab_to_end() const {
end cab_to_end( int const End ) const {
return (
iCabn == 2 ?
End == 2 ?
end::rear :
end::front ); }
inline
end cab_to_end() const {
return cab_to_end( iCabn ); }
// 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