OpenTTD: src/articulated_vehicles.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

articulated_vehicles.h
Go to the documentation of this file.
1 /* $Id: articulated_vehicles.h 24029 2012-03-14 20:49:54Z yexo $ */
2
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 */
9
12 #ifndef ARTICULATED_VEHICLES_H
13 #define ARTICULATED_VEHICLES_H
14
15 #include "vehicle_type.h"
16 #include "engine_type.h"
17
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);
28
29
30 #endif /* ARTICULATED_VEHICLES_H */