OpenTTD Source 20260711-master-g3fb3006dff
transport_type.h File Reference

Base types related to transport. More...

Go to the source code of this file.

Typedefs

typedef uint16_t UnitID
 Type for the company global vehicle unit number.

Enumerations

enum class  TransportType : uint8_t {
  Rail , Road , Water , Air ,
  Invalid = 0xFF
}
 Available types of transport. More...

Detailed Description

Base types related to transport.

Definition in file transport_type.h.

Typedef Documentation

◆ UnitID

typedef uint16_t UnitID

Type for the company global vehicle unit number.

Definition at line 14 of file transport_type.h.

Enumeration Type Documentation

◆ TransportType

enum class TransportType : uint8_t
strong

Available types of transport.

Enumerator
Rail 

Transport by train.

Road 

Transport by road vehicle.

Water 

Transport over water.

Air 

Transport through air.

Invalid 

Sentinel for invalid transport types.

Definition at line 17 of file transport_type.h.