annotate src/signal_type.h @ 13695:75560523443c draft

(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
author alberth <alberth@openttd.org>
date Sun, 22 Nov 2009 13:22:53 +0000
parents bc7926153e19
children ae5f1c6f349c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
12778
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
3 /*
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
4 * This file is part of OpenTTD.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
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.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
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.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
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/>.
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
8 */
bc7926153e19 (svn r17248) -Fix: add GPL license notice where appropriate
rubidium <rubidium@openttd.org>
parents: 9790
diff changeset
9
8761
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
10 /** @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
11
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
12 #ifndef SIGNAL_TYPE_H
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
13 #define SIGNAL_TYPE_H
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 /** 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
16 enum SignalVariant {
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
17 SIG_ELECTRIC = 0, ///< Light signal
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
18 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
19 };
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
20
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
21
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
22 /** 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
23 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
24 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
25 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
26 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
27 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
28 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
29 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
30 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
31 SIGTYPE_LAST_NOPBS = SIGTYPE_COMBO
8761
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
32 };
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
33
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
34
30b1c1db062a (svn r12457) -Codechange: Move signal enums on their own header.
belugas <belugas@openttd.org>
parents:
diff changeset
35 #endif /* SIGNAL_TYPE_H */