OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

water_land.h
Go to the documentation of this file.
1 /* $Id: water_land.h 22646 2011-07-10 13:04:04Z frosch $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
9
22 #define TILE_SEQ_LINE(dx, dy, dz, sx, sy, sz, img) { dx, dy, dz, sx, sy, sz, {img, PAL_NONE} },
23
25 #define TILE_SEQ_END() { (int8)0x80, 0, 0, 0, 0, 0, {0, 0} }
26
32 #define TILE_SPRITE_LINE(img, dtss) { {img, PAL_NONE}, dtss },
33
34 static const DrawTileSeqStruct _shipdepot_display_seq_1[] = {
35 TILE_SEQ_LINE( 0, 15, 0, 16, 1, 0x14, 0xFE8 | (1 << PALETTE_MODIFIER_COLOUR))
36 TILE_SEQ_END()
37 };
38
39 static const DrawTileSeqStruct _shipdepot_display_seq_2[] = {
40 TILE_SEQ_LINE( 0, 0, 0, 16, 1, 0x14, 0xFEA)
41 TILE_SEQ_LINE( 0, 15, 0, 16, 1, 0x14, 0xFE6 | (1 << PALETTE_MODIFIER_COLOUR))
42 TILE_SEQ_END()
43 };
44
45 static const DrawTileSeqStruct _shipdepot_display_seq_3[] = {
46 TILE_SEQ_LINE( 15, 0, 0, 1, 0x10, 0x14, 0xFE9 | (1 << PALETTE_MODIFIER_COLOUR))
47 TILE_SEQ_END()
48 };
49
50 static const DrawTileSeqStruct _shipdepot_display_seq_4[] = {
51 TILE_SEQ_LINE( 0, 0, 0, 1, 16, 0x14, 0xFEB)
52 TILE_SEQ_LINE( 15, 0, 0, 1, 16, 0x14, 0xFE7 | (1 << PALETTE_MODIFIER_COLOUR))
53 TILE_SEQ_END()
54 };
55
56 static const DrawTileSprites _shipdepot_display_data[][DEPOT_PART_END] = {
57 { // AXIS_X
58 TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_1) // DEPOT_PART_NORTH
59 TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_2) // DEPOT_PART_SOUTH
60 },
61 { // AXIS_Y
62 TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_3) // DEPOT_PART_NORTH
63 TILE_SPRITE_LINE(0xFDD, _shipdepot_display_seq_4) // DEPOT_PART_SOUTH
64 },
65 };
66
67 static const DrawTileSeqStruct _lock_display_seq_0[] = {
68 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 0 + 1)
69 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 4 + 1)
70 TILE_SEQ_END()
71 };
72
73 static const DrawTileSeqStruct _lock_display_seq_1[] = {
74 TILE_SEQ_LINE( 0, 0, 0, 1, 0x10, 0x14, 0)
75 TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 4)
76 TILE_SEQ_END()
77 };
78
79 static const DrawTileSeqStruct _lock_display_seq_2[] = {
80 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 0 + 2)
81 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 4 + 2)
82 TILE_SEQ_END()
83 };
84
85 static const DrawTileSeqStruct _lock_display_seq_3[] = {
86 TILE_SEQ_LINE( 0, 0, 0, 1, 0x10, 0x14, 0 + 3)
87 TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 4 + 3)
88 TILE_SEQ_END()
89 };
90
91 static const DrawTileSeqStruct _lock_display_seq_0b[] = {
92 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 8 + 1)
93 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 12 + 1)
94 TILE_SEQ_END()
95 };
96
97 static const DrawTileSeqStruct _lock_display_seq_1b[] = {
98 TILE_SEQ_LINE( 0, 0, 0, 0x1, 0x10, 0x14, 8)
99 TILE_SEQ_LINE( 0xF, 0, 0, 0x1, 0x10, 0x14, 12)
100 TILE_SEQ_END()
101 };
102
103 static const DrawTileSeqStruct _lock_display_seq_2b[] = {
104 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 8 + 2)
105 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 12 + 2)
106 TILE_SEQ_END()
107 };
108
109 static const DrawTileSeqStruct _lock_display_seq_3b[] = {
110 TILE_SEQ_LINE( 0, 0, 0, 1, 0x10, 0x14, 8 + 3)
111 TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 12 + 3)
112 TILE_SEQ_END()
113 };
114
115 static const DrawTileSeqStruct _lock_display_seq_0t[] = {
116 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 16 + 1)
117 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 20 + 1)
118 TILE_SEQ_END()
119 };
120
121 static const DrawTileSeqStruct _lock_display_seq_1t[] = {
122 TILE_SEQ_LINE( 0, 0, 0, 0x1, 0x10, 0x14, 16)
123 TILE_SEQ_LINE( 0xF, 0, 0, 0x1, 0x10, 0x14, 20)
124 TILE_SEQ_END()
125 };
126
127 static const DrawTileSeqStruct _lock_display_seq_2t[] = {
128 TILE_SEQ_LINE( 0, 0, 0, 0x10, 1, 0x14, 16 + 2)
129 TILE_SEQ_LINE( 0, 0xF, 0, 0x10, 1, 0x14, 20 + 2)
130 TILE_SEQ_END()
131 };
132
133 static const DrawTileSeqStruct _lock_display_seq_3t[] = {
134 TILE_SEQ_LINE( 0, 0, 0, 1, 0x10, 0x14, 16 + 3)
135 TILE_SEQ_LINE( 0xF, 0, 0, 1, 0x10, 0x14, 20 + 3)
136 TILE_SEQ_END()
137 };
138
139 static const DrawTileSprites _lock_display_data[][DIAGDIR_END] = {
140 { // LOCK_PART_MIDDLE
141 TILE_SPRITE_LINE(1, _lock_display_seq_0) // NE
142 TILE_SPRITE_LINE(0, _lock_display_seq_1) // SE
143 TILE_SPRITE_LINE(2, _lock_display_seq_2) // SW
144 TILE_SPRITE_LINE(3, _lock_display_seq_3) // NW
145 },
146
147 { // LOCK_PART_LOWER
148 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_0b) // NE
149 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_1b) // SE
150 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_2b) // SW
151 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_3b) // NW
152 },
153
154 { // LOCK_PART_UPPER
155 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_0t) // NE
156 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_1t) // SE
157 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_2t) // SW
158 TILE_SPRITE_LINE(0xFDD, _lock_display_seq_3t) // NW
159 },
160 };
161
162 #undef TILE_SEQ_LINE
163 #undef TILE_SEQ_END
164 #undef TILE_SPRITE_LINE