/dports/games/openttd/openttd-12.1/src/ |
H A D | newgrf_cargo.h | 17 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 D | articulated_vehicles.cpp | 146 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 D | cargo_type.h | 65 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 D | roadveh_gui.cpp | 43 StringID subtype_text[NUM_CARGO]; in DrawRoadVehDetails() 59 for (CargoID i = 0; i < NUM_CARGO; i++) { in DrawRoadVehDetails()
|
H A D | subsidy.cpp | 257 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 D | cargomonitor.h | 51 static_assert(NUM_CARGO <= (1 << CCB_CARGO_TYPE_LENGTH));
|
H A D | station.cpp | 89 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 D | newgrf.h | 127 …uint8 cargo_map[NUM_CARGO]; ///< Inverse cargo translation table (CargoID -> l…
|
H A D | cargotype.h | 171 static CargoSpec array[NUM_CARGO]; ///< Array holding all CargoSpecs
|
H A D | engine_base.h | 64 GRFFilePropsBase<NUM_CARGO + 2> grf_prop;
|
H A D | cargotype.cpp | 22 CargoSpec CargoSpec::array[NUM_CARGO];
|
H A D | train_gui.cpp | 333 for (CargoID i = 0; i < NUM_CARGO; i++) { in GetTrainDetailsWndVScroll() 461 for (CargoID i = 0; i < NUM_CARGO; i++) { in DrawTrainDetails()
|
H A D | newgrf_station.h | 125 GRFFilePropsBase<NUM_CARGO + 3> grf_prop;
|
/dports/games/openttd/openttd-12.1/src/saveload/ |
H A D | cargopacket_sl.cpp | 47 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 D | town_sl.cpp | 135 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 D | station_sl.cpp | 367 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 D | economy_sl.cpp | 39 …vegameVersionBefore(SLV_55) ? 12 : IsSavegameVersionBefore(SLV_EXTEND_CARGOTYPES) ? 32 : NUM_CARGO; in Load()
|
/dports/games/openttd/openttd-12.1/src/linkgraph/ |
H A D | linkgraph_gui.cpp | 396 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 D | refresh.cpp | 79 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 D | refresh.h | 84 uint capacities[NUM_CARGO]; ///< Current added capacities per cargo ID in the consist.
|
/dports/games/openttd/openttd-12.1/src/widgets/ |
H A D | link_graph_legend_widget.h | 29 WID_LGL_CARGO_LAST = WID_LGL_CARGO_FIRST + NUM_CARGO - 1,
|
/dports/games/openttd/openttd-12.1/src/script/api/ |
H A D | script_event_types.cpp | 44 for (CargoID cid = 0; cid < NUM_CARGO; cid++) { in GetCargoType() 62 for (CargoID c = 0; c < NUM_CARGO; c++) { in GetCapacity()
|
H A D | script_cargolist.cpp | 58 for (CargoID i = 0; i < NUM_CARGO; i++) { in ScriptCargoList_StationAccepting()
|
H A D | script_cargo.cpp | 22 return (cargo_type < NUM_CARGO && ::CargoSpec::Get(cargo_type)->IsValid()); in IsValidCargo()
|
H A D | script_engine.cpp | 57 for (CargoID cid = 0; cid < NUM_CARGO; cid++) { in GetCargoType() 94 for (CargoID c = 0; c < NUM_CARGO; c++) { in GetCapacity()
|