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

Method IsFullLoadOrder

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

* Is this order a OrderLoadType::FullLoad or OrderLoadType::FullLoadAny? * @return true iff the order is a full load or full load any order. */

Source from the content-addressed store, hash-verified

133 * @return true iff the order is a full load or full load any order.
134 */
135 inline bool IsFullLoadOrder() const
136 {
137 OrderLoadType type = GetLoadType();
138 return type == OrderLoadType::FullLoad || type == OrderLoadType::FullLoadAny;
139 }
140
141 /** How must the consist be loaded? */
142 inline OrderLoadType GetLoadType() const { return static_cast<OrderLoadType>(GB(this->flags, 4, 3)); }

Callers 6

MapOldOrderMethod · 0.95
CalcPercentVehicleFilledFunction · 0.80
HasFullLoadOrderMethod · 0.80
HandleStationRefitFunction · 0.80
LoadUnloadVehicleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected