OpenTTD
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[] = {
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)
41 };
42 
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)
51 };
52 
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)
61 };
62 
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)
71 };
72 
77  ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_FIRST, 20)
78  ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_LAST, 20)
80 };
81 
87 static const AnimCursor * const _animcursors[] = {
92  _build_signals_animcursor
93 };