OpenTTD Source 20260711-master-g3fb3006dff
transport_type.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef TRANSPORT_TYPE_H
11#define TRANSPORT_TYPE_H
12
14typedef uint16_t UnitID;
15
17enum class TransportType : uint8_t {
18 /* These constants are for now linked to the representation of bridges
19 * and tunnels, so they can be used by GetTileTrackStatus_TunnelBridge.
20 * In an ideal world, these constants would be used everywhere when
21 * accessing tunnels and bridges. For now, you should just not change
22 * the values for road and rail.
23 */
28 Invalid = 0xFF,
29};
30
31#endif /* TRANSPORT_TYPE_H */
@ Invalid
broken savegame (used internally)
Definition saveload.h:449
TransportType
Available types of transport.
@ Water
Transport over water.
@ Rail
Transport by train.
@ Air
Transport through air.
@ Road
Transport by road vehicle.
uint16_t UnitID
Type for the company global vehicle unit number.