Fix: Don't allow right-click to close world generation progress window. (#13084)
[openttd-github.git] / src / engine_func.h
blob533d13acfab6c38c127dcb4e68deafac0b2fd4a5
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 /** @file engine_func.h Functions related to engines. */
10 #ifndef ENGINE_FUNC_H
11 #define ENGINE_FUNC_H
13 #include "engine_type.h"
14 #include "vehicle_type.h"
15 #include "company_type.h"
16 #include "timer/timer_game_calendar.h"
18 void SetupEngines();
19 void StartupEngines();
20 void CheckEngines();
22 /* Original engine data counts and offsets */
23 extern const uint8_t _engine_counts[4];
24 extern const uint8_t _engine_offsets[4];
26 bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company);
27 bool IsEngineRefittable(EngineID engine);
28 void SetYearEngineAgingStops();
29 void CalcEngineReliability(Engine *e, bool new_month);
30 void StartupOneEngine(Engine *e, const TimerGameCalendar::YearMonthDay &aging_ymd, uint32_t seed);
32 uint GetTotalCapacityOfArticulatedParts(EngineID engine);
34 #endif /* ENGINE_FUNC_H */