OpenTTD Source
20240915-master-g3784a3d3d6
|
Go to the documentation of this file.
10 #ifndef VEHICLE_TYPE_H
11 #define VEHICLE_TYPE_H
Buses, trucks and trams belong to this class.
@ EIT_PREVIEW
Vehicle drawn in preview window, news, ...
@ MassSend
Tells that it's a mass send to depot command (type in VLW flag)
DepotCommand
Flags for goto depot commands.
@ EIT_PURCHASE
Vehicle drawn in purchase list, autoreplace gui, ...
@ VEH_TRAIN
Train vehicle type.
@ VEH_ROAD
Road vehicle type.
@ EIT_IN_DETAILS
Vehicle drawn in vehicle details, refit window, ...
EngineImageType
Visualisation contexts of vehicles and engines.
Aircraft, helicopters, rotors and their shadows belong to this class.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
@ VEH_INVALID
Non-existing type of vehicle.
@ VEH_DISASTER
Disaster vehicle type.
AccelerationModel
Vehicle acceleration models.
static const VehicleID INVALID_VEHICLE
Constant representing a non-existing vehicle.
@ EIT_ON_MAP
Vehicle drawn in viewport.
@ LocateHangar
Find another airport if the target one lacks a hangar.
static const int GROUND_ACCELERATION
Acceleration due to gravity, 9.8 m/s^2.
@ VEH_SHIP
Ship vehicle type.
@ DontCancel
Don't cancel current goto depot command if any.
'Train' is either a loco or a wagon.
uint32_t VehicleID
The type all our vehicle IDs have.
Disasters, like submarines, skyrangers and their shadows, belong to this class.
@ EIT_IN_DEPOT
Vehicle drawn in depot.
#define DECLARE_ENUM_AS_ADDABLE(EnumType)
Operator that allows this enumeration to be added to any other enumeration.
All ships have this type.
@ EIT_IN_LIST
Vehicle drawn in vehicle list, group list, ...
static const uint VEHICLE_LENGTH
The length of a vehicle in tile units.
static const uint MAX_LENGTH_VEHICLE_NAME_CHARS
The maximum length of a vehicle name in characters including '\0'.
A special vehicle is one of the following:
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
@ Service
The vehicle will leave the depot right after arrival (service only)
VehicleType
Available vehicle types.
@ VEH_AIRCRAFT
Aircraft vehicle type.
@ VEH_EFFECT
Effect vehicle type (smoke, explosions, sparks, bubbles)
VehicleType type
Type of vehicle.
@ VEH_COMPANY_END
Last company-ownable type.