animcursors.h

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * 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.
00006  * 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.
00007  * 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/>.
00008  */
00009 
00025 #define ANIM_CURSOR_LINE(Sprite, display_time) { Sprite, display_time },
00026 
00030 #define ANIM_CURSOR_END() ANIM_CURSOR_LINE(AnimCursor::LAST, 0)
00031 
00035 static const AnimCursor _demolish_animcursor[] = {
00036   ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_FIRST, 8)
00037   ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_1,     8)
00038   ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_2,     8)
00039   ANIM_CURSOR_LINE(SPR_CURSOR_DEMOLISH_LAST,  8)
00040   ANIM_CURSOR_END()
00041 };
00042 
00046 static const AnimCursor _lower_land_animcursor[] = {
00047   ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_FIRST, 10)
00048   ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_1,     10)
00049   ANIM_CURSOR_LINE(SPR_CURSOR_LOWERLAND_LAST,  29)
00050   ANIM_CURSOR_END()
00051 };
00052 
00056 static const AnimCursor _raise_land_animcursor[] = {
00057   ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_FIRST, 10)
00058   ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_1,     10)
00059   ANIM_CURSOR_LINE(SPR_CURSOR_RAISELAND_LAST,  29)
00060   ANIM_CURSOR_END()
00061 };
00062 
00066 static const AnimCursor _order_goto_animcursor[] = {
00067   ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_FIRST, 10)
00068   ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_1,     10)
00069   ANIM_CURSOR_LINE(SPR_CURSOR_PICKSTATION_LAST,  29)
00070   ANIM_CURSOR_END()
00071 };
00072 
00076 static const AnimCursor _build_signals_animcursor[] = {
00077   ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_FIRST, 20)
00078   ANIM_CURSOR_LINE(SPR_CURSOR_BUILDSIGNALS_LAST,  20)
00079   ANIM_CURSOR_END()
00080 };
00081 
00087 static const AnimCursor * const _animcursors[] = {
00088   _demolish_animcursor,
00089   _lower_land_animcursor,
00090   _raise_land_animcursor,
00091   _order_goto_animcursor,
00092   _build_signals_animcursor
00093 };