Mercurial > hg > openttd
annotate src/signal_type.h @ 10123:57aa34285d05 draft
(svn r14307) -Fix: when deleting a station, remove news items regarding it
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 13 Sep 2008 10:19:51 +0000 |
parents | f5b8e5291165 |
children | 53a1238f53d5 bc7926153e19 |
rev | line source |
---|---|
8761
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
2 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
3 /** @file signal_type.h Types and classes related to signals. */ |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
4 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
5 #ifndef SIGNAL_TYPE_H |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
6 #define SIGNAL_TYPE_H |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
7 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
8 /** Variant of the signal, i.e. how does the signal look? */ |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
9 enum SignalVariant { |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
10 SIG_ELECTRIC = 0, ///< Light signal |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
11 SIG_SEMAPHORE = 1 ///< Old-fashioned semaphore signal |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
12 }; |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
13 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
14 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
15 /** Type of signal, i.e. how does the signal behave? */ |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
16 enum SignalType { |
9790
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
17 SIGTYPE_NORMAL = 0, ///< normal signal |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
18 SIGTYPE_ENTRY = 1, ///< presignal block entry |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
19 SIGTYPE_EXIT = 2, ///< presignal block exit |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
20 SIGTYPE_COMBO = 3, ///< presignal inter-block |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
21 SIGTYPE_PBS = 4, ///< normal pbs signal |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
22 SIGTYPE_PBS_ONEWAY = 5, ///< no-entry signal |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
23 SIGTYPE_LAST = SIGTYPE_PBS_ONEWAY, |
f5b8e5291165
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
rubidium <rubidium@openttd.org>
parents:
8761
diff
changeset
|
24 SIGTYPE_LAST_NOPBS = SIGTYPE_COMBO |
8761
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
25 }; |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
26 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
27 |
30b1c1db062a
(svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff
changeset
|
28 #endif /* SIGNAL_TYPE_H */ |