# articulated_vehicles.h

Go to the documentation of this file.

    00001 /* $Id: articulated_vehicles.h 18566 2009-12-20 14:28:55Z frosch $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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/>.
    00008  */
    00009
    00012 #ifndef ARTICULATED_VEHICLES_H
    00013 #define ARTICULATED_VEHICLES_H
    00014
    00015 #include "vehicle_type.h"
    00016 #include "engine_type.h"
    00017
    00018 uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
    00019 CargoArray GetCapacityOfArticulatedParts(EngineID engine);
    00020 void AddArticulatedParts(Vehicle *first);
    00021 void GetArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type, uint32 *union_mask, uint32 *intersection_mask);
    00022 uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type);
    00023 uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, bool include_initial_cargo_type);
    00024 bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type);
    00025 bool IsArticulatedVehicleRefittable(EngineID engine);
    00026 void CheckConsistencyOfArticulatedVehicle(const Vehicle *v);
    00027
    00028
    00029 #endif /* ARTICULATED_VEHICLES_H */