MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetGroupingString

Method GetGroupingString

src/station_gui.cpp:1722–1730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1720 }
1721
1722 StringID GetGroupingString(Grouping grouping, StationID station) const
1723 {
1724 switch (grouping) {
1725 case GR_SOURCE: return this->GetEntryString(station, STR_STATION_VIEW_FROM_HERE, STR_STATION_VIEW_FROM, STR_STATION_VIEW_FROM_ANY);
1726 case GR_NEXT: return this->GetEntryString(station, STR_STATION_VIEW_VIA_HERE, STR_STATION_VIEW_VIA, STR_STATION_VIEW_VIA_ANY);
1727 case GR_DESTINATION: return this->GetEntryString(station, STR_STATION_VIEW_TO_HERE, STR_STATION_VIEW_TO, STR_STATION_VIEW_TO_ANY);
1728 default: NOT_REACHED();
1729 }
1730 }
1731
1732 /**
1733 * Determine if we need to show the special "non-stop" string.

Callers 1

DrawEntriesMethod · 0.95

Calls 2

GetEntryStringMethod · 0.95
NOT_REACHEDFunction · 0.85

Tested by

no test coverage detected