track_land.h

Go to the documentation of this file.
00001 /* $Id: track_land.h 17248 2009-08-21 20:21:05Z rubidium $ */
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 
00012 #define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} },
00013 #define TILE_SEQ_END() { (int8)0x80, 0, 0, 0, 0, 0, {0, 0} }
00014 
00015 
00016 static const DrawTileSeqStruct _depot_gfx_NE[] = {
00017   TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
00018   TILE_SEQ_END()
00019 };
00020 
00021 static const DrawTileSeqStruct _depot_gfx_SE[] = {
00022   TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | (1 << PALETTE_MODIFIER_COLOUR),  2, 2, 1, 13)
00023   TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
00024   TILE_SEQ_END()
00025 };
00026 
00027 static const DrawTileSeqStruct _depot_gfx_SW[] = {
00028   TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | (1 << PALETTE_MODIFIER_COLOUR), 2,  2, 13, 1)
00029   TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
00030   TILE_SEQ_END()
00031 };
00032 
00033 static const DrawTileSeqStruct _depot_gfx_NW[] = {
00034   TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
00035   TILE_SEQ_END()
00036 };
00037 
00038 static const DrawTileSprites _depot_gfx_table[] = {
00039   { {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE },
00040   { {SPR_RAIL_TRACK_Y,    PAL_NONE}, _depot_gfx_SE },
00041   { {SPR_RAIL_TRACK_X,    PAL_NONE}, _depot_gfx_SW },
00042   { {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW }
00043 };
00044 
00045 static const DrawTileSprites _depot_invisible_gfx_table[] = {
00046   { {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE },
00047   { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
00048   { {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
00049   { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW }
00050 };
00051 
00052 #undef TILE_SEQ_LINE
00053 #undef TILE_SEQ_END
00054 

Generated on Wed Apr 21 20:31:55 2010 for OpenTTD by  doxygen 1.6.1