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

Method GetFirstStation

src/cargopacket.h:209–212  ·  view source on GitHub ↗

* Gets the ID of the station where the cargo was loaded for the first time. * @return StationID. */

Source from the content-addressed store, hash-verified

207 * @return StationID.
208 */
209 inline StationID GetFirstStation() const
210 {
211 return this->first_station;
212 }
213
214 /**
215 * Get the current distance the cargo has traveled.

Callers 11

DrawShipDetailsFunction · 0.45
GetNewGRFVariableMethod · 0.45
BuildCargoListMethod · 0.45
DrawRoadVehDetailsFunction · 0.45
DrawAircraftDetailsFunction · 0.45
VehicleGetVariableFunction · 0.45
operator()Method · 0.45
AddMethod · 0.45
CountCargoWaitingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected