water_land.h

Go to the documentation of this file.
00001 /* $Id: water_land.h 19715 2010-04-24 21:03:40Z terkhen $ */
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 struct WaterDrawTileStruct {
00013   byte delta_x;
00014   byte delta_y;
00015   byte delta_z;
00016   byte size_x;
00017   byte size_y;
00018   byte size_z;
00019   SpriteID image;
00020 };
00021 
00022 #define BEGIN(image) { 0, 0, 0, 0, 0, 0, image }
00023 #define END(y) { 0x80, y, 0, 0, 0, 0, 0 }
00024 
00025 static const WaterDrawTileStruct _shipdepot_display_seq_1[] = {
00026   BEGIN(0xFDD),
00027   { 0, 15, 0, 16, 1, 0x14, 0xFE8 | (1 << PALETTE_MODIFIER_COLOUR) },
00028   END(0)
00029 };
00030 
00031 static const WaterDrawTileStruct _shipdepot_display_seq_2[] = {
00032   BEGIN(0xFDD),
00033   { 0,  0, 0, 16, 1, 0x14, 0xFEA },
00034   { 0, 15, 0, 16, 1, 0x14, 0xFE6 | (1 << PALETTE_MODIFIER_COLOUR) },
00035   END(0)
00036 };
00037 
00038 static const WaterDrawTileStruct _shipdepot_display_seq_3[] = {
00039   BEGIN(0xFDD),
00040   { 15, 0, 0, 1, 0x10, 0x14, 0xFE9 | (1 << PALETTE_MODIFIER_COLOUR) },
00041   END(0)
00042 };
00043 
00044 static const WaterDrawTileStruct _shipdepot_display_seq_4[] = {
00045   BEGIN(0xFDD),
00046   {  0, 0, 0, 1, 16, 0x14, 0xFEB },
00047   { 15, 0, 0, 1, 16, 0x14, 0xFE7 | (1 << PALETTE_MODIFIER_COLOUR) },
00048   END(0)
00049 };
00050 
00051 static const WaterDrawTileStruct * const _shipdepot_display_seq[] = {
00052   _shipdepot_display_seq_1,
00053   _shipdepot_display_seq_2,
00054   _shipdepot_display_seq_3,
00055   _shipdepot_display_seq_4,
00056 };
00057 
00058 static const WaterDrawTileStruct _lock_display_seq_0[] = {
00059   BEGIN(1),
00060   { 0,   0, 0, 0x10, 1, 0x14, 0 + 1 },
00061   { 0, 0xF, 0, 0x10, 1, 0x14, 4 + 1 },
00062   END(0)
00063 };
00064 
00065 static const WaterDrawTileStruct _lock_display_seq_1[] = {
00066   BEGIN(0),
00067   {   0, 0, 0, 1, 0x10, 0x14, 0 },
00068   { 0xF, 0, 0, 1, 0x10, 0x14, 4 },
00069   END(0)
00070 };
00071 
00072 static const WaterDrawTileStruct _lock_display_seq_2[] = {
00073   BEGIN(2),
00074   { 0,   0, 0, 0x10, 1, 0x14, 0 + 2 },
00075   { 0, 0xF, 0, 0x10, 1, 0x14, 4 + 2 },
00076   END(0)
00077 };
00078 
00079 static const WaterDrawTileStruct _lock_display_seq_3[] = {
00080   BEGIN(3),
00081   {   0, 0, 0, 1, 0x10, 0x14, 0 + 3 },
00082   { 0xF, 0, 0, 1, 0x10, 0x14, 4 + 3 },
00083   END(0)
00084 };
00085 
00086 static const WaterDrawTileStruct _lock_display_seq_0b[] = {
00087   BEGIN(0xFDD),
00088   { 0,   0, 0, 0x10, 1, 0x14, 8 + 1 },
00089   { 0, 0xF, 0, 0x10, 1, 0x14, 12 + 1 },
00090   END(0)
00091 };
00092 
00093 static const WaterDrawTileStruct _lock_display_seq_1b[] = {
00094   BEGIN(0xFDD),
00095   {   0, 0, 0, 0x1, 0x10, 0x14, 8 },
00096   { 0xF, 0, 0, 0x1, 0x10, 0x14, 12 },
00097   END(0)
00098 };
00099 
00100 static const WaterDrawTileStruct _lock_display_seq_2b[] = {
00101   BEGIN(0xFDD),
00102   { 0,   0, 0, 0x10, 1, 0x14, 8 + 2 },
00103   { 0, 0xF, 0, 0x10, 1, 0x14, 12 + 2 },
00104   END(0)
00105 };
00106 
00107 static const WaterDrawTileStruct _lock_display_seq_3b[] = {
00108   BEGIN(0xFDD),
00109   {   0, 0, 0, 1, 0x10, 0x14, 8 + 3 },
00110   { 0xF, 0, 0, 1, 0x10, 0x14, 12 + 3 },
00111   END(0)
00112 };
00113 
00114 static const WaterDrawTileStruct _lock_display_seq_0t[] = {
00115   BEGIN(0xFDD),
00116   { 0,   0, 0, 0x10, 1, 0x14, 16 + 1 },
00117   { 0, 0xF, 0, 0x10, 1, 0x14, 20 + 1 },
00118   END(8)
00119 };
00120 
00121 static const WaterDrawTileStruct _lock_display_seq_1t[] = {
00122   BEGIN(0xFDD),
00123   {   0, 0, 0, 0x1, 0x10, 0x14, 16 },
00124   { 0xF, 0, 0, 0x1, 0x10, 0x14, 20 },
00125   END(8)
00126 };
00127 
00128 static const WaterDrawTileStruct _lock_display_seq_2t[] = {
00129   BEGIN(0xFDD),
00130   { 0,   0, 0, 0x10, 1, 0x14, 16 + 2 },
00131   { 0, 0xF, 0, 0x10, 1, 0x14, 20 + 2 },
00132   END(8)
00133 };
00134 
00135 static const WaterDrawTileStruct _lock_display_seq_3t[] = {
00136   BEGIN(0xFDD),
00137   {   0, 0, 0, 1, 0x10, 0x14, 16 + 3 },
00138   { 0xF, 0, 0, 1, 0x10, 0x14, 20 + 3 },
00139   END(8)
00140 };
00141 
00142 static const WaterDrawTileStruct * const _lock_display_seq[] = {
00143   _lock_display_seq_0,
00144   _lock_display_seq_1,
00145   _lock_display_seq_2,
00146   _lock_display_seq_3,
00147 
00148   _lock_display_seq_0b,
00149   _lock_display_seq_1b,
00150   _lock_display_seq_2b,
00151   _lock_display_seq_3b,
00152 
00153   _lock_display_seq_0t,
00154   _lock_display_seq_1t,
00155   _lock_display_seq_2t,
00156   _lock_display_seq_3t,
00157 };
00158 
00159 #undef BEGIN
00160 #undef END

Generated on Fri Mar 18 23:17:39 2011 for OpenTTD by  doxygen 1.6.1