mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-11 20:16:47 +01:00
whois: consolidate the two lookahead accessors into one
Per review: StationNameAhead()/StationIsStopAhead() duplicated the same bounds check for no reason. Replaced with a single TimeTableEntryAhead(Offset) returning the TMTableLine itself; the whois branch reads .StationName/.Ah off it directly.
This commit is contained in:
@@ -70,10 +70,9 @@ class TTrainParameters
|
||||
std::string ShowRelation() const;
|
||||
double WatchMTable(double DistCounter);
|
||||
std::string NextStop() const;
|
||||
// nazwa wpisu rozkladu Offset pozycji za StationIndex (Offset>=1); "none" poza koncem rozkladu
|
||||
std::string StationNameAhead( int Offset ) const;
|
||||
// true, gdy ten wpis to zaplanowany postoj (ma godzine przyjazdu), false dla przelotu / poza koncem
|
||||
bool StationIsStopAhead( int Offset ) const;
|
||||
// wpis rozkladu Offset pozycji za StationIndex (Offset>=1); poza zakresem 1..StationCount
|
||||
// zwraca techniczny wpis zerowy (TimeTable[0], StationName=="nowhere", Ah==-1)
|
||||
TMTableLine const &TimeTableEntryAhead( int Offset ) const;
|
||||
sound_source next_stop_sound() const;
|
||||
sound_source last_stop_sound() const;
|
||||
bool IsStop() const;
|
||||
|
||||
Reference in New Issue
Block a user