Types related to companies.
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.
uint8_t GetOriginalEngineOffset(VehicleType type)
Get the index offset for original engines of a VehicleType.
bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company)
Check if an engine is buildable.
uint8_t GetOriginalEngineCount(VehicleType type)
Get the number of original engines for a VehicleType.
void StartupEngines()
Start/initialise all our engines.
void StartupOneEngine(Engine *e, const TimerGameCalendar::YearMonthDay &aging_ymd, uint32_t seed)
Start/initialise one engine.
void CheckEngines()
Check for engines that have an appropriate availability.
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.
Types related to engines.
PoolID< uint16_t, struct EngineIDTag, 64000, 0xFFFF > EngineID
Unique identification number of an engine.
Definition of the game-calendar-timer.
Types related to vehicles.
VehicleType
Available vehicle types.