Fix ICU iterators on leading/trailing whitespace
[openttd/fttd.git] / src / articulated_vehicles.h
blob46b4da37440e514cdcdc739730e61552cd8a6b4b
1 /* $Id$ */
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 articulated_vehicles.h Functions related to articulated vehicles. */
12 #ifndef ARTICULATED_VEHICLES_H
13 #define ARTICULATED_VEHICLES_H
15 #include "vehicle_type.h"
16 #include "engine_type.h"
18 uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
19 CargoArray GetCapacityOfArticulatedParts(EngineID engine);
20 void AddArticulatedParts(Vehicle *first);
21 void GetArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type, uint32 *union_mask, uint32 *intersection_mask);
22 uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type);
23 uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type);
24 bool IsArticulatedVehicleCarryingDifferentCargoes(const Vehicle *v, CargoID *cargo_type);
25 bool IsArticulatedVehicleRefittable(EngineID engine);
26 bool IsArticulatedEngine(EngineID engine_type);
27 void CheckConsistencyOfArticulatedVehicle(const Vehicle *v);
30 #endif /* ARTICULATED_VEHICLES_H */