diff options
author | michi_cc <michi_cc@openttd.org> | 2012-07-01 23:12:50 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-07-01 23:12:50 +0000 |
commit | b0d21d2fadc9e7df11a2758e3e5cc411af2b0452 (patch) | |
tree | 533cf8897f15d02ccc19156034692ee32fa27976 /src/signal_type.h | |
parent | a6244ed0dc39f520283abf2530154f0ae3996f2f (diff) | |
download | openttd-b0d21d2fadc9e7df11a2758e3e5cc411af2b0452.tar.xz |
(svn r24367) -Feature: [NewGRF] Customisable signals for rail types.
Diffstat (limited to 'src/signal_type.h')
-rw-r--r-- | src/signal_type.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/signal_type.h b/src/signal_type.h index ec1630db1..c7d06072a 100644 --- a/src/signal_type.h +++ b/src/signal_type.h @@ -38,4 +38,14 @@ enum SignalType { template <> struct EnumPropsT<SignalType> : MakeEnumPropsT<SignalType, byte, SIGTYPE_NORMAL, SIGTYPE_END, SIGTYPE_END, 3> {}; +/** + * These are states in which a signal can be. Currently these are only two, so + * simple boolean logic will do. But do try to compare to this enum instead of + * normal boolean evaluation, since that will make future additions easier. + */ +enum SignalState { + SIGNAL_STATE_RED = 0, ///< The signal is red + SIGNAL_STATE_GREEN = 1, ///< The signal is green +}; + #endif /* SIGNAL_TYPE_H */ |