(svn r23005) -Fix (r23004): Of course there's still the 16-sprite version for shore...
[openttd/fttd.git] / src / articulated_vehicles.h
blob3a3940a9d28ec7a8dd7dcf470ce7b25af99830d9
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 IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type);
25 bool IsArticulatedVehicleRefittable(EngineID engine);
26 void CheckConsistencyOfArticulatedVehicle(const Vehicle *v);
29 #endif /* ARTICULATED_VEHICLES_H */