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

Method IsCompleteTimetable

src/order_cmd.cpp:486–494  ·  view source on GitHub ↗

* Checks whether all orders of the list have a filled timetable. * @return whether all orders have a filled timetable. */

Source from the content-addressed store, hash-verified

484 * @return whether all orders have a filled timetable.
485 */
486bool OrderList::IsCompleteTimetable() const
487{
488 for (const Order &o : this->orders) {
489 /* Implicit orders are, by definition, not timetabled. */
490 if (o.IsType(OT_IMPLICIT)) continue;
491 if (!o.IsCompletelyTimetabled()) return false;
492 }
493 return true;
494}
495
496#ifdef WITH_ASSERT
497/**

Callers 3

CmdSetTimetableStartFunction · 0.80

Calls 2

IsTypeMethod · 0.80

Tested by

no test coverage detected