2007-06-01 11:41:02 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file articulated_vehicles.h Functions related to articulated vehicles. */
|
2007-06-01 11:41:02 +00:00
|
|
|
|
|
|
|
#ifndef ARTICULATED_VEHICLES_H
|
|
|
|
#define ARTICULATED_VEHICLES_H
|
|
|
|
|
2007-12-27 13:35:39 +00:00
|
|
|
#include "vehicle_type.h"
|
2008-03-28 18:00:38 +00:00
|
|
|
#include "engine_type.h"
|
2007-12-27 13:35:39 +00:00
|
|
|
|
2007-09-17 04:23:03 +00:00
|
|
|
uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
|
2008-02-14 07:25:24 +00:00
|
|
|
uint16 *GetCapacityOfArticulatedParts(EngineID engine, VehicleType type);
|
2007-06-11 14:00:16 +00:00
|
|
|
void AddArticulatedParts(Vehicle **vl, VehicleType type);
|
2008-07-27 15:17:16 +00:00
|
|
|
uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
|
|
|
|
uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
|
|
|
|
bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type);
|
2009-02-27 20:40:39 +00:00
|
|
|
bool IsArticulatedVehicleRefittable(EngineID engine);
|
2007-06-01 11:41:02 +00:00
|
|
|
|
|
|
|
#endif /* ARTICULATED_VEHICLES_H */
|