OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #ifndef VEHICLE_TYPE_H
11 #define VEHICLE_TYPE_H
70 DEPOT_COMMAND_MASK = 0xFU << 28,
@ VEH_AIRCRAFT
Aircraft vehicle type.
Buses, trucks and trams belong to this class.
VehiclePathFinders
Pathfinding option states.
@ EIT_PREVIEW
Vehicle drawn in preview window, news, ...
@ DEPOT_MASS_SEND
Tells that it's a mass send to depot command (type in VLW flag)
@ VPF_YAPF
Yet Another PathFinder.
@ EIT_PURCHASE
Vehicle drawn in purchase list, autoreplace gui, ...
@ DEPOT_LOCATE_HANGAR
Find another airport if the target one lacks a hangar.
@ EIT_IN_DETAILS
Vehicle drawn in vehicle details, refit window, ...
EngineImageType
Visualisation contexts of vehicles and engines.
@ VEH_ROAD
Road vehicle type.
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.
Informative template class exposing basic enumeration properties used by several other templates belo...
AccelerationModel
Vehicle acceleration models.
@ VEH_COMPANY_END
Last company-ownable type.
static const VehicleID INVALID_VEHICLE
Constant representing a non-existing vehicle.
@ EIT_ON_MAP
Vehicle drawn in viewport.
static const int GROUND_ACCELERATION
Acceleration due to gravity, 9.8 m/s^2.
@ VEH_EFFECT
Effect vehicle type (smoke, explosions, sparks, bubbles)
'Train' is either a loco or a wagon.
@ VEH_INVALID
Non-existing type of vehicle.
DepotCommand
Flags to add to p1 for goto depot commands.
VehicleType
Available vehicle types.
Disasters, like submarines, skyrangers and their shadows, belong to this class.
@ EIT_IN_DEPOT
Vehicle drawn in depot.
All ships have this type.
@ EIT_IN_LIST
Vehicle drawn in vehicle list, group list, ...
@ DEPOT_SERVICE
The vehicle will leave the depot right after arrival (service only)
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:
Helper template class that makes basic properties of given enumeration type visible from outsize.
@ VEH_DISASTER
Disaster vehicle type.
uint32 VehicleID
The type all our vehicle IDs have.
@ VEH_TRAIN
Train vehicle type.
VehicleType type
Type of vehicle.
@ VEH_SHIP
Ship vehicle type.
@ DEPOT_DONT_CANCEL
Don't cancel current goto depot command if any.