OpenTTD Source  20241120-master-g6d3adc6169
transport_type.h File Reference

Base types related to transport. More...

#include "core/enum_type.hpp"

Go to the source code of this file.

Typedefs

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

Enumerations

enum  TransportType : uint8_t {
  TRANSPORT_BEGIN = 0 , TRANSPORT_RAIL = TRANSPORT_BEGIN , TRANSPORT_ROAD , TRANSPORT_WATER ,
  TRANSPORT_AIR , TRANSPORT_END , INVALID_TRANSPORT = 0xff
}
 Available types of transport. More...
 

Detailed Description

Base types related to transport.

Definition in file transport_type.h.

Enumeration Type Documentation

◆ TransportType

enum TransportType : uint8_t

Available types of transport.

Enumerator
TRANSPORT_BEGIN 

Begin of the iterator.

TRANSPORT_RAIL 

Transport by train.

TRANSPORT_ROAD 

Transport by road vehicle.

TRANSPORT_WATER 

Transport over water.

TRANSPORT_AIR 

Transport through air.

TRANSPORT_END 

End of iterations.

INVALID_TRANSPORT 

Sentinel for invalid transport types.

Definition at line 19 of file transport_type.h.