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 
00023 #define ANIM_CURSOR_LINE(Sprite, display_time) { Sprite, display_time },
00024 
00027 #define ANIM_CURSOR_END() ANIM_CURSOR_LINE(AnimCursor::LAST, 0)
00028 
00031 static const AnimCursor _demolish_animcursor[] = {
00032   ANIM_CURSOR_LINE(0x2C0, 8)
00033   ANIM_CURSOR_LINE(0x2C1, 8)
00034   ANIM_CURSOR_LINE(0x2C2, 8)
00035   ANIM_CURSOR_LINE(0x2C3, 8)
00036   ANIM_CURSOR_END()
00037 };
00038 
00041 static const AnimCursor _lower_land_animcursor[] = {
00042   ANIM_CURSOR_LINE(0x2BB, 10)
00043   ANIM_CURSOR_LINE(0x2BC, 10)
00044   ANIM_CURSOR_LINE(0x2BD, 29)
00045   ANIM_CURSOR_END()
00046 };
00047 
00050 static const AnimCursor _raise_land_animcursor[] = {
00051   ANIM_CURSOR_LINE(0x2B8, 10)
00052   ANIM_CURSOR_LINE(0x2B9, 10)
00053   ANIM_CURSOR_LINE(0x2BA, 29)
00054   ANIM_CURSOR_END()
00055 };
00056 
00059 static const AnimCursor _order_goto_animcursor[] = {
00060   ANIM_CURSOR_LINE(0x2CC, 10)
00061   ANIM_CURSOR_LINE(0x2CD, 10)
00062   ANIM_CURSOR_LINE(0x2CE, 29)
00063   ANIM_CURSOR_END()
00064 };
00065 
00068 static const AnimCursor _build_signals_animcursor[] = {
00069   ANIM_CURSOR_LINE(0x50C, 20)
00070   ANIM_CURSOR_LINE(0x50D, 20)
00071   ANIM_CURSOR_END()
00072 };
00073 
00078 static const AnimCursor * const _animcursors[] = {
00079   _demolish_animcursor,
00080   _lower_land_animcursor,
00081   _raise_land_animcursor,
00082   _order_goto_animcursor,
00083   _build_signals_animcursor
00084 };

Generated on Wed Dec 30 20:40:07 2009 for OpenTTD by  doxygen 1.5.6