# water_land.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
    00022 #define TILE_SEQ_LINE(dx, dy, dz, sx, sy, sz, img) { dx, dy, dz, sx, sy, sz, {img, PAL_NONE} },
    00023
    00025 #define TILE_SEQ_END() { (int8)0x80, 0, 0, 0, 0, 0, {0, 0} }
    00026
    00032 #define TILE_SPRITE_LINE(img, dtss) { {img, PAL_NONE}, dtss },
    00033
    00034 static const DrawTileSeqStruct _shipdepot_display_seq_1[] = {
    00035   TILE_SEQ_LINE( 0, 15, 0, 16, 1, 0x14, 0xFE8 | (1 << PALETTE_MODIFIER_COLOUR))
    00036   TILE_SEQ_END()
    00037 };
    00038
    00039 static const DrawTileSeqStruct _shipdepot_display_seq_2[] = {
    00040   TILE_SEQ_LINE( 0,  0, 0, 16, 1, 0x14, 0xFEA)
    00041   TILE_SEQ_LINE( 0, 15, 0, 16, 1, 0x14, 0xFE6 | (1 << PALETTE_MODIFIER_COLOUR))
    00042   TILE_SEQ_END()
    00043 };
    00044
    00045 static const DrawTileSeqStruct _shipdepot_display_seq_3[] = {
    00046   TILE_SEQ_LINE( 15, 0, 0, 1, 0x10, 0x14, 0xFE9 | (1 << PALETTE_MODIFIER_COLOUR))
    00047   TILE_SEQ_END()
    00048 };
    00049
    00050 static const DrawTileSeqStruct _shipdepot_display_seq_4[] = {
    00051   TILE_SEQ_LINE(  0, 0, 0, 1, 16, 0x14, 0xFEB)
    00052   TILE_SEQ_LINE( 15, 0, 0, 1, 16, 0x14, 0xFE7 | (1 << PALETTE_MODIFIER_COLOUR))
    00053   TILE_SEQ_END()
    00054 };
    00055
    00056 static const DrawTileSprites _shipdepot_display_data[] = {
    00057   TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_1)
    00058   TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_2)
    00059   TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_3)
    00060   TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_4)
    00061 };
    00062
    00063 static const DrawTileSeqStruct _lock_display_seq_0[] = {
    00064   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 0 + 1)
    00065   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 4 + 1)
    00066   TILE_SEQ_END()
    00067 };
    00068
    00069 static const DrawTileSeqStruct _lock_display_seq_1[] = {
    00070   TILE_SEQ_LINE(   0, 0, 0, 1, 0x10, 0x14, 0)
    00071   TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 4)
    00072   TILE_SEQ_END()
    00073 };
    00074
    00075 static const DrawTileSeqStruct _lock_display_seq_2[] = {
    00076   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 0 + 2)
    00077   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 4 + 2)
    00078   TILE_SEQ_END()
    00079 };
    00080
    00081 static const DrawTileSeqStruct _lock_display_seq_3[] = {
    00082   TILE_SEQ_LINE(   0, 0, 0, 1, 0x10, 0x14, 0 + 3)
    00083   TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 4 + 3)
    00084   TILE_SEQ_END()
    00085 };
    00086
    00087 static const DrawTileSeqStruct _lock_display_seq_0b[] = {
    00088   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 8 + 1)
    00089   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 12 + 1)
    00090   TILE_SEQ_END()
    00091 };
    00092
    00093 static const DrawTileSeqStruct _lock_display_seq_1b[] = {
    00094   TILE_SEQ_LINE(   0, 0, 0, 0x1, 0x10, 0x14, 8)
    00095   TILE_SEQ_LINE( 0xF, 0, 0, 0x1, 0x10, 0x14, 12)
    00096   TILE_SEQ_END()
    00097 };
    00098
    00099 static const DrawTileSeqStruct _lock_display_seq_2b[] = {
    00100   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 8 + 2)
    00101   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 12 + 2)
    00102   TILE_SEQ_END()
    00103 };
    00104
    00105 static const DrawTileSeqStruct _lock_display_seq_3b[] = {
    00106   TILE_SEQ_LINE(   0, 0, 0, 1, 0x10, 0x14, 8 + 3)
    00107   TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 12 + 3)
    00108   TILE_SEQ_END()
    00109 };
    00110
    00111 static const DrawTileSeqStruct _lock_display_seq_0t[] = {
    00112   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 16 + 1)
    00113   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 20 + 1)
    00114   TILE_SEQ_END()
    00115 };
    00116
    00117 static const DrawTileSeqStruct _lock_display_seq_1t[] = {
    00118   TILE_SEQ_LINE(   0, 0, 0, 0x1, 0x10, 0x14, 16)
    00119   TILE_SEQ_LINE( 0xF, 0, 0, 0x1, 0x10, 0x14, 20)
    00120   TILE_SEQ_END()
    00121 };
    00122
    00123 static const DrawTileSeqStruct _lock_display_seq_2t[] = {
    00124   TILE_SEQ_LINE( 0,   0, 0, 0x10, 1, 0x14, 16 + 2)
    00125   TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 20 + 2)
    00126   TILE_SEQ_END()
    00127 };
    00128
    00129 static const DrawTileSeqStruct _lock_display_seq_3t[] = {
    00130   TILE_SEQ_LINE(   0, 0, 0, 1, 0x10, 0x14, 16 + 3)
    00131   TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 20 + 3)
    00132   TILE_SEQ_END()
    00133 };
    00134
    00135 static const DrawTileSprites _lock_display_data[] = {
    00136   TILE_SPRITE_LINE(1, _lock_display_seq_0)
    00137   TILE_SPRITE_LINE(0, _lock_display_seq_1)
    00138   TILE_SPRITE_LINE(2, _lock_display_seq_2)
    00139   TILE_SPRITE_LINE(3, _lock_display_seq_3)
    00140
    00141   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_0b)
    00142   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_1b)
    00143   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_2b)
    00144   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_3b)
    00145
    00146   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_0t)
    00147   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_1t)
    00148   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_2t)
    00149   TILE_SPRITE_LINE(0xFDD, _lock_display_seq_3t)
    00150 };
    00151
    00152 #undef TILE_SEQ_LINE
    00153 #undef TILE_SEQ_END
    00154 #undef TILE_SPRITE_LINE