src/articulated_vehicles.h
author translators
Wed, 03 Dec 2008 18:43:10 +0000
changeset 10401 867b5ace076f
parent 9725 982452c3357e
permissions -rw-r--r--
(svn r14652) -Update: WebTranslator2 update to 2008-12-03 18:43:05
croatian - 28 changed by knovak (28)
indonesian - 64 fixed, 1 changed by fanioz (50), dnaftali (15)
macedonian - 10 fixed by zharko (10)
malay - 267 fixed, 3 changed by tombakemas (270)
serbian - 29 fixed by dejac (29)
6772
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     1
/* $Id$ */
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     2
9111
48ce04029fe4 (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
rubidium
parents: 8777
diff changeset
     3
/** @file articulated_vehicles.h Functions related to articulated vehicles. */
6772
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     4
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     5
#ifndef ARTICULATED_VEHICLES_H
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     6
#define ARTICULATED_VEHICLES_H
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
     7
8144
65cec0877b78 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
rubidium
parents: 7595
diff changeset
     8
#include "vehicle_type.h"
8777
5ba12006e339 (svn r12476) -Codechange: split type engine related types from engine.h (and openttd.h) to engine_type.h.
rubidium
parents: 8559
diff changeset
     9
#include "engine_type.h"
8144
65cec0877b78 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes.
rubidium
parents: 7595
diff changeset
    10
7595
9d645518f001 (svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes.
rubidium
parents: 6857
diff changeset
    11
uint CountArticulatedParts(EngineID engine_type, bool purchase_window);
8559
e51166aff0b2 (svn r12137) -Fix [FS#1769]: Show cargo capacity for articulated vehicles correctly in the purchase list. Multiple cargo types can also now been shown.
peter1138
parents: 8144
diff changeset
    12
uint16 *GetCapacityOfArticulatedParts(EngineID engine, VehicleType type);
6857
60130753e595 (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
maedhros
parents: 6772
diff changeset
    13
void AddArticulatedParts(Vehicle **vl, VehicleType type);
9725
982452c3357e (svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
frosch
parents: 9111
diff changeset
    14
uint32 GetUnionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
982452c3357e (svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
frosch
parents: 9111
diff changeset
    15
uint32 GetIntersectionOfArticulatedRefitMasks(EngineID engine, VehicleType type, bool include_initial_cargo_type);
982452c3357e (svn r13850) -Fix [FS#2146]: Fix resp. implement refitting of articulated vehicles during autoreplace.
frosch
parents: 9111
diff changeset
    16
bool IsArticulatedVehicleCarryingDifferentCargos(const Vehicle *v, CargoID *cargo_type);
6772
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
    17
8672ba1bebc9 (svn r10008) -Codechange: Move a couple of functions related to articulated vehicles to a file of their own.
maedhros
parents:
diff changeset
    18
#endif /* ARTICULATED_VEHICLES_H */