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

Method IsGotoWaypointOrder

src/script/api/script_order.cpp:130–136  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

128}
129
130/* static */ bool ScriptOrder::IsGotoWaypointOrder(VehicleID vehicle_id, OrderPosition order_position)
131{
132 if (!IsValidVehicleOrder(vehicle_id, order_position)) return false;
133
134 const Order *order = ::ResolveOrder(vehicle_id, order_position);
135 return order != nullptr && order->GetType() == OT_GOTO_WAYPOINT;
136}
137
138/* static */ bool ScriptOrder::IsConditionalOrder(VehicleID vehicle_id, OrderPosition order_position)
139{

Callers

nothing calls this directly

Calls 2

ResolveOrderFunction · 0.85
GetTypeMethod · 0.45

Tested by

no test coverage detected