OpenTTD
signal_type.h
Go to the documentation of this file.
1 /* $Id: signal_type.h 24367 2012-07-01 23:12:50Z michi_cc $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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 <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef SIGNAL_TYPE_H
13 #define SIGNAL_TYPE_H
14 
15 #include "core/enum_type.hpp"
16 
21 };
22 
23 
25 enum SignalType {
32 
33  SIGTYPE_END,
34  SIGTYPE_LAST = SIGTYPE_PBS_ONEWAY,
35  SIGTYPE_LAST_NOPBS = SIGTYPE_COMBO,
36 };
38 template <> struct EnumPropsT<SignalType> : MakeEnumPropsT<SignalType, byte, SIGTYPE_NORMAL, SIGTYPE_END, SIGTYPE_END, 3> {};
39 
40 
49 };
50 
51 #endif /* SIGNAL_TYPE_H */
Helper template class that makes basic properties of given enumeration type visible from outsize...
Definition: enum_type.hpp:66
presignal inter-block
Definition: signal_type.h:29
presignal block exit
Definition: signal_type.h:28
SignalType
Type of signal, i.e.
Definition: signal_type.h:25
presignal block entry
Definition: signal_type.h:27
SignalState
These are states in which a signal can be.
Definition: signal_type.h:46
Type (helpers) for enums.
no-entry signal
Definition: signal_type.h:31
Informative template class exposing basic enumeration properties used by several other templates belo...
Definition: enum_type.hpp:52
Old-fashioned semaphore signal.
Definition: signal_type.h:20
The signal is red.
Definition: signal_type.h:47
Light signal.
Definition: signal_type.h:19
SignalVariant
Variant of the signal, i.e.
Definition: signal_type.h:18
normal pbs signal
Definition: signal_type.h:30
normal signal
Definition: signal_type.h:26
The signal is green.
Definition: signal_type.h:48