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

Method GetTimetableTotalDuration

src/order_base.h:421–421  ·  view source on GitHub ↗

* Gets the total duration of the vehicles timetable or Ticks::INVALID_TICKS is the timetable is not complete. * @return total timetable duration or Ticks::INVALID_TICKS for incomplete timetables */

Source from the content-addressed store, hash-verified

419 * @return total timetable duration or Ticks::INVALID_TICKS for incomplete timetables
420 */
421 inline TimerGameTick::Ticks GetTimetableTotalDuration() const { return this->IsCompleteTimetable() ? this->timetable_duration : Ticks::INVALID_TICKS; }
422
423 /**
424 * Gets the known duration of the vehicles timetable even if the timetable is not complete.

Callers 2

CmdSetTimetableStartFunction · 0.80
UpdateVehicleTimetableFunction · 0.80

Calls 1

IsCompleteTimetableMethod · 0.95

Tested by

no test coverage detected