Home
last modified time | relevance | path

Searched refs:NUM_CARGO (Results 1 – 25 of 52) sorted by relevance

123

/dports/games/openttd/openttd-12.1/src/
H A Dnewgrf_cargo.h17 static const CargoID CT_DEFAULT = NUM_CARGO + 0;
18 static const CargoID CT_PURCHASE = NUM_CARGO + 1;
19 static const CargoID CT_DEFAULT_NA = NUM_CARGO + 2;
H A Darticulated_vehicles.cpp146 if (cargo_type < NUM_CARGO) capacity[cargo_type] = cargo_capacity; in GetCapacityOfArticulatedParts()
157 if (cargo_type < NUM_CARGO) capacity[cargo_type] += cargo_capacity; in GetCapacityOfArticulatedParts()
179 if (cargo_type < NUM_CARGO && cargo_capacity > 0) { in GetArticulatedVehicleCargoesAndRefits()
191 if (cargo_type < NUM_CARGO && cargo_capacity > 0) { in GetArticulatedVehicleCargoesAndRefits()
328 assert(v->cargo_type < NUM_CARGO); in CheckConsistencyOfArticulatedVehicle()
336 for (CargoID cid = 0; cid < NUM_CARGO; cid++) { in CheckConsistencyOfArticulatedVehicle()
H A Dcargo_type.h65 NUM_CARGO = 64, ///< Maximal number of cargo types in a game. enumerator
84 uint amount[NUM_CARGO]; ///< Amount of each type of cargo.
H A Droadveh_gui.cpp43 StringID subtype_text[NUM_CARGO]; in DrawRoadVehDetails()
59 for (CargoID i = 0; i < NUM_CARGO; i++) { in DrawRoadVehDetails()
H A Dsubsidy.cpp257 if (cid >= NUM_CARGO || !::CargoSpec::Get(cid)->IsValid()) return CMD_ERROR; in CmdCreateSubsidy()
344 for (CargoID i = 0; i < NUM_CARGO; i++) { in FindSubsidyTownCargoRoute()
354 for (cid = 0; cid < NUM_CARGO; cid++) { in FindSubsidyTownCargoRoute()
H A Dcargomonitor.h51 static_assert(NUM_CARGO <= (1 << CCB_CARGO_TYPE_LENGTH));
H A Dstation.cpp89 for (CargoID c = 0; c < NUM_CARGO; c++) { in ~Station()
104 for (CargoID c = 0; c < NUM_CARGO; ++c) { in ~Station()
154 for (CargoID c = 0; c < NUM_CARGO; c++) { in ~Station()
H A Dnewgrf.h127 …uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> l…
H A Dcargotype.h171 static CargoSpec array[NUM_CARGO]; ///< Array holding all CargoSpecs
H A Dengine_base.h64 GRFFilePropsBase<NUM_CARGO + 2> grf_prop;
H A Dcargotype.cpp22 CargoSpec CargoSpec::array[NUM_CARGO];
H A Dtrain_gui.cpp333 for (CargoID i = 0; i < NUM_CARGO; i++) { in GetTrainDetailsWndVScroll()
461 for (CargoID i = 0; i < NUM_CARGO; i++) { in DrawTrainDetails()
H A Dnewgrf_station.h125 GRFFilePropsBase<NUM_CARGO + 3> grf_prop;
/dports/games/openttd/openttd-12.1/src/saveload/
H A Dcargopacket_sl.cpp47 for (CargoID c = 0; c < NUM_CARGO; c++) { in AfterLoad()
74 for (CargoID c = 0; c < NUM_CARGO; c++) st->goods[c].cargo.InvalidateCache(); in AfterLoad()
H A Dtown_sl.cpp135 if (IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH)) return NUM_CARGO; in GetNumCargo()
137 return SlGetStructListLength(NUM_CARGO); in GetNumCargo()
142 SlSetStructListLength(NUM_CARGO); in Save()
143 for (CargoID i = 0; i < NUM_CARGO; i++) { in Save()
H A Dstation_sl.cpp367 if (IsSavegameVersionBefore(SLV_SAVELOAD_LIST_LENGTH)) return NUM_CARGO; in GetNumCargo()
369 return SlGetStructListLength(NUM_CARGO); in GetNumCargo()
376 SlSetStructListLength(NUM_CARGO); in Save()
378 for (CargoID i = 0; i < NUM_CARGO; i++) { in Save()
427 …vegameVersionBefore(SLV_55) ? 12 : IsSavegameVersionBefore(SLV_EXTEND_CARGOTYPES) ? 32 : NUM_CARGO; in FixPointers()
H A Deconomy_sl.cpp39 …vegameVersionBefore(SLV_55) ? 12 : IsSavegameVersionBefore(SLV_EXTEND_CARGOTYPES) ? 32 : NUM_CARGO; in Load()
/dports/games/openttd/openttd-12.1/src/linkgraph/
H A Dlinkgraph_gui.cpp396 static const uint ENTRIES_PER_ROW = CeilDiv(NUM_CARGO, 5); in MakeCargoesLegendLinkGraphGUI()
399 for (uint i = 0; i < NUM_CARGO; ++i) { in MakeCargoesLegendLinkGraphGUI()
412 for (uint i = 0; i < 4 - (NUM_CARGO - 1) % 5; ++i) { in MakeCargoesLegendLinkGraphGUI()
496 for (uint c = 0; c < NUM_CARGO; c++) { in SetOverlay()
605 for (uint c = 0; c < NUM_CARGO; c++) { in UpdateOverlayCargoes()
634 for (uint c = 0; c < NUM_CARGO; c++) { in OnClick()
654 for (CargoID i = 0; i < NUM_CARGO; i++) { in OnInvalidateData()
H A Drefresh.cpp79 assert(v->cargo_type < NUM_CARGO); in LinkRefresher()
206 for (CargoID c = 0; c < NUM_CARGO; c++) { in RefreshStats()
276 for (CargoID c = 0; c != NUM_CARGO; ++c) { in RefreshLinks()
H A Drefresh.h84 uint capacities[NUM_CARGO]; ///< Current added capacities per cargo ID in the consist.
/dports/games/openttd/openttd-12.1/src/widgets/
H A Dlink_graph_legend_widget.h29 WID_LGL_CARGO_LAST = WID_LGL_CARGO_FIRST + NUM_CARGO - 1,
/dports/games/openttd/openttd-12.1/src/script/api/
H A Dscript_event_types.cpp44 for (CargoID cid = 0; cid < NUM_CARGO; cid++) { in GetCargoType()
62 for (CargoID c = 0; c < NUM_CARGO; c++) { in GetCapacity()
H A Dscript_cargolist.cpp58 for (CargoID i = 0; i < NUM_CARGO; i++) { in ScriptCargoList_StationAccepting()
H A Dscript_cargo.cpp22 return (cargo_type < NUM_CARGO && ::CargoSpec::Get(cargo_type)->IsValid()); in IsValidCargo()
H A Dscript_engine.cpp57 for (CargoID cid = 0; cid < NUM_CARGO; cid++) { in GetCargoType()
94 for (CargoID c = 0; c < NUM_CARGO; c++) { in GetCapacity()

123