OpenTTD Source
20240919-master-gdf0233f4c2
|
void SetYearEngineAgingStops()
Compute the value for _year_engine_aging_stops.
void SetupEngines()
Initialise the engine pool with the data from the original vehicles.
uint GetTotalCapacityOfArticulatedParts(EngineID engine)
Get the capacity of an engine with articulated parts.
Owner
Enum for all companies/owners.
void CheckEngines()
Check for engines that have an appropriate availability.
const uint8_t _engine_counts[4]
Number of engines of each vehicle type in original engine data.
bool IsEngineRefittable(EngineID engine)
Check if an engine is refittable.
void CalcEngineReliability(Engine *e, bool new_month)
Update Engine::reliability and (if needed) update the engine GUIs.
void StartupEngines()
Start/initialise all our engines.
const uint8_t _engine_offsets[4]
Offset of the first engine of each vehicle type in original engine data.
void StartupOneEngine(Engine *e, const TimerGameCalendar::YearMonthDay &aging_ymd, uint32_t seed)
Start/initialise one engine.
VehicleType
Available vehicle types.
uint16_t EngineID
Unique identification number of an engine.
bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company)
Check if an engine is buildable.