# articulated_vehicles.h

Go to the documentation of this file.

    00001 /* $Id: articulated_vehicles.h 15701 2009-03-13 21:28:40Z frosch $ */
    00002
    00005 #ifndef ARTICULATED_VEHICLES_H
    00006 #define ARTICULATED_VEHICLES_H
    00007
    00008 #include "vehicle_type.h"
    00009 #include "engine_type.h"
    00010
    00011 uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
    00012 uint16 *GetCapacityOfArticulatedParts(EngineID engine, VehicleType type);
    00013 void AddArticulatedParts(Vehicle **vl, VehicleType type);
    00014 uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
    00015 uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
    00016 bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type);
    00017 bool IsArticulatedVehicleRefittable(EngineID engine);
    00018 void CheckConsistencyOfArticulatedVehicle(const Vehicle *v);
    00019
    00020
    00021 #endif /* ARTICULATED_VEHICLES_H */