mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 03:29:19 +02:00
refactoring: cab logic partially separated from cab activation
This commit is contained in:
6
Train.h
6
Train.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user