OpenTTD Source 20261112-master-gbcbec5e63f
signal_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 SIGNAL_TYPE_H
11#define SIGNAL_TYPE_H
12
14enum class SignalVariant : uint8_t {
18};
19
20
22enum class SignalType : uint8_t {
23 Block = 0,
24 Entry = 1,
25 Exit = 2,
26 Combo = 3,
27 Path = 4,
30};
31
32
38enum class SignalState : uint8_t {
39 Red = 0,
40 Green = 1,
42};
43
44#endif /* SIGNAL_TYPE_H */
A leg of a path in the link graph.
SignalType
Type of signal, i.e.
Definition signal_type.h:22
@ Entry
presignal block entry.
Definition signal_type.h:24
@ PathOneWay
no-entry path signal.
Definition signal_type.h:28
@ Combo
presignal inter-block.
Definition signal_type.h:26
@ Block
block signal.
Definition signal_type.h:23
@ Exit
presignal block exit.
Definition signal_type.h:25
SignalState
These are states in which a signal can be.
Definition signal_type.h:38
@ Green
The signal is green.
Definition signal_type.h:40
@ Red
The signal is red.
Definition signal_type.h:39
SignalVariant
Variant of the signal, i.e.
Definition signal_type.h:14
@ End
End marker.
Definition signal_type.h:17
@ Electric
Light signal.
Definition signal_type.h:15
@ Semaphore
Old-fashioned semaphore signal.
Definition signal_type.h:16