Fix compiler warnings.
[openttd-joker.git] / src / engine_func.h
blob18d6b555e9db4b8061d64281f2635f7bf27a476c
1 /* $Id: engine_func.h 25553 2013-07-02 18:57:26Z rubidium $ */
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
10 /** @file engine_func.h Functions related to engines. */
12 #ifndef ENGINE_FUNC_H
13 #define ENGINE_FUNC_H
15 #include "engine_type.h"
16 #include "vehicle_type.h"
17 #include "company_type.h"
19 void SetupEngines();
20 void StartupEngines();
21 void CheckEngines();
23 /* Original engine data counts and offsets */
24 extern const uint8 _engine_counts[4];
25 extern const uint8 _engine_offsets[4];
27 bool IsEngineBuildable(EngineID engine, VehicleType type, CompanyID company);
28 bool IsEngineRefittable(EngineID engine);
29 void GetArticulatedVehicleCargoesAndRefits(EngineID engine, CargoArray *cargoes, uint32 *refits);
30 void SetYearEngineAgingStops();
31 void StartupOneEngine(Engine *e, Date aging_date);
33 uint GetTotalCapacityOfArticulatedParts(EngineID engine);
35 #endif /* ENGINE_FUNC_H */