OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

animcursors.h
Go to the documentation of this file.
1 /* $Id: animcursors.h 24900 2013-01-08 22:46:42Z planetmaker $ */
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
25 #define ANIM_CURSOR_LINE(Sprite, display_time) { Sprite, display_time },
26
30 #define ANIM_CURSOR_END() ANIM_CURSOR_LINE(AnimCursor::LAST, 0)
31
35 static const AnimCursor _demolish_animcursor[] = {
36 ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_FIRST, 8)
37 ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_1, 8)
38 ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_2, 8)
39 ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_LAST, 8)
40 ANIM_CURSOR_END()
41 };
42
46 static const AnimCursor _lower_land_animcursor[] = {
47 ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_FIRST, 10)
48 ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_1, 10)
49 ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_LAST, 29)
50 ANIM_CURSOR_END()
51 };
52
56 static const AnimCursor _raise_land_animcursor[] = {
57 ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_FIRST, 10)
58 ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_1, 10)
59 ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_LAST, 29)
60 ANIM_CURSOR_END()
61 };
62
66 static const AnimCursor _order_goto_animcursor[] = {
67 ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_FIRST, 10)
68 ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_1, 10)
69 ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_LAST, 29)
70 ANIM_CURSOR_END()
71 };
72
76 static const AnimCursor _build_signals_animcursor[] = {
77 ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_FIRST, 20)
78 ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_LAST, 20)
79 ANIM_CURSOR_END()
80 };
81
87 static const AnimCursor * const _animcursors[] = {
88 _demolish_animcursor,
89 _lower_land_animcursor,
90 _raise_land_animcursor,
91 _order_goto_animcursor,
92 _build_signals_animcursor
93 };