OpenTTD Source: src/table/sprites.h Source File

OpenTTD Source 13.1

sprites.h
Go to the documentation of this file.
1 /*
2 * This file is part of OpenTTD.
3 * 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.
4 * 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.
5 * 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/>.
6 */
7
38 #ifndef SPRITES_H
39 #define SPRITES_H
40
41 #include "../gfx_type.h"
42
43 static const SpriteID SPR_SELECT_TILE = 752;
44 static const SpriteID SPR_DOT = 774; // corner marker for lower/raise land
45 static const SpriteID SPR_DOT_SMALL = 4078;
46 static const SpriteID SPR_WHITE_POINT = 4079;
47
48 /* ASCII */
49 static const SpriteID SPR_ASCII_SPACE = 2;
50 static const SpriteID SPR_ASCII_SPACE_SMALL = 226;
51 static const SpriteID SPR_ASCII_SPACE_BIG = 450;
52
53 static const SpriteID SPR_LARGE_SMALL_WINDOW = 682;
54
56 static const SpriteID SPR_OPENTTD_BASE = 4896;
57 static const uint16 OPENTTD_SPRITE_COUNT = 191;
58
59 /* Halftile-selection sprites */
60 static const SpriteID SPR_HALFTILE_SELECTION_FLAT = SPR_OPENTTD_BASE;
61 static const SpriteID SPR_HALFTILE_SELECTION_DOWN = SPR_OPENTTD_BASE + 4;
62 static const SpriteID SPR_HALFTILE_SELECTION_UP = SPR_OPENTTD_BASE + 8;
63
64 static const SpriteID SPR_SQUARE = SPR_OPENTTD_BASE + 38; // coloured square (used for newgrf compatibility)
65 static const SpriteID SPR_BLOT = SPR_OPENTTD_BASE + 39; // coloured circle (used for server compatibility and installed content)
66 static const SpriteID SPR_LOCK = SPR_OPENTTD_BASE + 40; // lock icon (for password protected servers)
67 static const SpriteID SPR_BOX_EMPTY = SPR_OPENTTD_BASE + 41;
68 static const SpriteID SPR_BOX_CHECKED = SPR_OPENTTD_BASE + 42;
69 static const SpriteID SPR_WARNING_SIGN = SPR_OPENTTD_BASE + 43; // warning sign (shown if there are any newgrf errors)
70 static const SpriteID SPR_WINDOW_RESIZE_RIGHT= SPR_OPENTTD_BASE + 44; // resize icon to the right
71 static const SpriteID SPR_WINDOW_RESIZE_LEFT = SPR_OPENTTD_BASE + 149; // resize icon to the left
72 static const SpriteID SPR_WINDOW_SHADE = SPR_OPENTTD_BASE + 151; // shade the window icon
73 static const SpriteID SPR_WINDOW_UNSHADE = SPR_OPENTTD_BASE + 152; // unshade the window icon
74 static const SpriteID SPR_WINDOW_DEBUG = SPR_OPENTTD_BASE + 153; // NewGRF debug window icon
75 static const SpriteID SPR_IMG_PLAY_MUSIC_RTL = SPR_OPENTTD_BASE + 150; // play music button, but then for RTL users
76 /* Arrow icons pointing in all 4 directions */
77 static const SpriteID SPR_ARROW_DOWN = SPR_OPENTTD_BASE + 45;
78 static const SpriteID SPR_ARROW_UP = SPR_OPENTTD_BASE + 46;
79 static const SpriteID SPR_ARROW_LEFT = SPR_OPENTTD_BASE + 47;
80 static const SpriteID SPR_ARROW_RIGHT = SPR_OPENTTD_BASE + 48;
81 static const SpriteID SPR_HOUSE_ICON = SPR_OPENTTD_BASE + 49;
82 static const SpriteID SPR_SHARED_ORDERS_ICON = SPR_OPENTTD_BASE + 50;
83 static const SpriteID SPR_PIN_UP = SPR_OPENTTD_BASE + 51; // pin icon
84 static const SpriteID SPR_PIN_DOWN = SPR_OPENTTD_BASE + 52;
85
86 static const SpriteID SPR_CLOSEBOX = 143;
87
88 static const SpriteID SPR_CIRCLE_FOLDED = SPR_OPENTTD_BASE + 147; // (+) icon
89 static const SpriteID SPR_CIRCLE_UNFOLDED = SPR_OPENTTD_BASE + 148; // (-) icon
90
91 /* on screen keyboard icons */
92 static const SpriteID SPR_OSK_LEFT = SPR_OPENTTD_BASE + 138;
93 static const SpriteID SPR_OSK_RIGHT = SPR_OPENTTD_BASE + 139;
94 static const SpriteID SPR_OSK_CAPS = SPR_OPENTTD_BASE + 140;
95 static const SpriteID SPR_OSK_SHIFT = SPR_OPENTTD_BASE + 141;
96 static const SpriteID SPR_OSK_BACKSPACE = SPR_OPENTTD_BASE + 142;
97 static const SpriteID SPR_OSK_SPECIAL = SPR_OPENTTD_BASE + 143;
98
100 static const SpriteID SPR_CLONE_TRAIN = SPR_OPENTTD_BASE + 106;
101 static const SpriteID SPR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 107;
102 static const SpriteID SPR_CLONE_SHIP = SPR_OPENTTD_BASE + 108;
103 static const SpriteID SPR_CLONE_AIRCRAFT = SPR_OPENTTD_BASE + 109;
104
105 static const SpriteID SPR_SELL_TRAIN = SPR_OPENTTD_BASE + 93;
106 static const SpriteID SPR_SELL_ROADVEH = SPR_OPENTTD_BASE + 94;
107 static const SpriteID SPR_SELL_SHIP = SPR_OPENTTD_BASE + 95;
108 static const SpriteID SPR_SELL_AIRCRAFT = SPR_OPENTTD_BASE + 96;
109 static const SpriteID SPR_SELL_ALL_TRAIN = SPR_OPENTTD_BASE + 97;
110 static const SpriteID SPR_SELL_ALL_ROADVEH = SPR_OPENTTD_BASE + 98;
111 static const SpriteID SPR_SELL_ALL_SHIP = SPR_OPENTTD_BASE + 99;
112 static const SpriteID SPR_SELL_ALL_AIRCRAFT = SPR_OPENTTD_BASE + 100;
113 static const SpriteID SPR_REPLACE_TRAIN = SPR_OPENTTD_BASE + 101;
114 static const SpriteID SPR_REPLACE_ROADVEH = SPR_OPENTTD_BASE + 102;
115 static const SpriteID SPR_REPLACE_SHIP = SPR_OPENTTD_BASE + 103;
116 static const SpriteID SPR_REPLACE_AIRCRAFT = SPR_OPENTTD_BASE + 104;
117 static const SpriteID SPR_SELL_CHAIN_TRAIN = SPR_OPENTTD_BASE + 105;
118
119 static const SpriteID SPR_PROFIT_NA = SPR_OPENTTD_BASE + 154;
120 static const SpriteID SPR_PROFIT_NEGATIVE = SPR_OPENTTD_BASE + 155;
121 static const SpriteID SPR_PROFIT_SOME = SPR_OPENTTD_BASE + 156;
122 static const SpriteID SPR_PROFIT_LOT = SPR_OPENTTD_BASE + 157;
123
124 static const SpriteID SPR_UNREAD_NEWS = SPR_OPENTTD_BASE + 158;
125 static const SpriteID SPR_EXCLUSIVE_TRANSPORT = SPR_OPENTTD_BASE + 159;
126 static const SpriteID SPR_GROUP_REPLACE_PROTECT = SPR_OPENTTD_BASE + 160;
127 static const SpriteID SPR_GROUP_REPLACE_ACTIVE = SPR_OPENTTD_BASE + 161;
128
129 static const SpriteID SPR_GROUP_CREATE_TRAIN = SPR_OPENTTD_BASE + 114;
130 static const SpriteID SPR_GROUP_CREATE_ROADVEH = SPR_OPENTTD_BASE + 115;
131 static const SpriteID SPR_GROUP_CREATE_SHIP = SPR_OPENTTD_BASE + 116;
132 static const SpriteID SPR_GROUP_CREATE_AIRCRAFT = SPR_OPENTTD_BASE + 117;
133 static const SpriteID SPR_GROUP_DELETE_TRAIN = SPR_OPENTTD_BASE + 118;
134 static const SpriteID SPR_GROUP_DELETE_ROADVEH = SPR_OPENTTD_BASE + 119;
135 static const SpriteID SPR_GROUP_DELETE_SHIP = SPR_OPENTTD_BASE + 120;
136 static const SpriteID SPR_GROUP_DELETE_AIRCRAFT = SPR_OPENTTD_BASE + 121;
137 static const SpriteID SPR_GROUP_RENAME_TRAIN = SPR_OPENTTD_BASE + 122;
138 static const SpriteID SPR_GROUP_RENAME_ROADVEH = SPR_OPENTTD_BASE + 123;
139 static const SpriteID SPR_GROUP_RENAME_SHIP = SPR_OPENTTD_BASE + 124;
140 static const SpriteID SPR_GROUP_RENAME_AIRCRAFT = SPR_OPENTTD_BASE + 125;
141 static const SpriteID SPR_GROUP_REPLACE_ON_TRAIN = SPR_OPENTTD_BASE + 126;
142 static const SpriteID SPR_GROUP_REPLACE_ON_ROADVEH = SPR_OPENTTD_BASE + 127;
143 static const SpriteID SPR_GROUP_REPLACE_ON_SHIP = SPR_OPENTTD_BASE + 128;
144 static const SpriteID SPR_GROUP_REPLACE_ON_AIRCRAFT = SPR_OPENTTD_BASE + 129;
145 static const SpriteID SPR_GROUP_REPLACE_OFF_TRAIN = SPR_OPENTTD_BASE + 130;
146 static const SpriteID SPR_GROUP_REPLACE_OFF_ROADVEH = SPR_OPENTTD_BASE + 131;
147 static const SpriteID SPR_GROUP_REPLACE_OFF_SHIP = SPR_OPENTTD_BASE + 132;
148 static const SpriteID SPR_GROUP_REPLACE_OFF_AIRCRAFT = SPR_OPENTTD_BASE + 133;
149
150 static const SpriteID SPR_GROUP_LIVERY_TRAIN = SPR_OPENTTD_BASE + 175;
151 static const SpriteID SPR_GROUP_LIVERY_ROADVEH = SPR_OPENTTD_BASE + 176;
152 static const SpriteID SPR_GROUP_LIVERY_SHIP = SPR_OPENTTD_BASE + 177;
153 static const SpriteID SPR_GROUP_LIVERY_AIRCRAFT = SPR_OPENTTD_BASE + 178;
154
155 static const SpriteID SPR_TOWN_RATING_NA = SPR_OPENTTD_BASE + 162;
156 static const SpriteID SPR_TOWN_RATING_APALLING = SPR_OPENTTD_BASE + 163;
157 static const SpriteID SPR_TOWN_RATING_MEDIOCRE = SPR_OPENTTD_BASE + 164;
158 static const SpriteID SPR_TOWN_RATING_GOOD = SPR_OPENTTD_BASE + 165;
159
160 static const SpriteID SPR_IMG_SWITCH_TOOLBAR = SPR_OPENTTD_BASE + 144;
161
162 static const SpriteID SPR_IMG_DELETE_LEFT = SPR_OPENTTD_BASE + 166;
163 static const SpriteID SPR_IMG_DELETE_RIGHT = SPR_OPENTTD_BASE + 167;
164
165 static const SpriteID SPR_WINDOW_DEFSIZE = SPR_OPENTTD_BASE + 168;
166 static const SpriteID SPR_RENAME = SPR_OPENTTD_BASE + 184;
167 static const SpriteID SPR_GOTO_LOCATION = SPR_OPENTTD_BASE + 185;
168
169 static const SpriteID SPR_CHAT = SPR_OPENTTD_BASE + 186;
170 static const SpriteID SPR_ADMIN = SPR_OPENTTD_BASE + 187;
171 static const SpriteID SPR_JOIN = SPR_OPENTTD_BASE + 188;
172 static const SpriteID SPR_PLAYER_SELF = SPR_OPENTTD_BASE + 189;
173 static const SpriteID SPR_PLAYER_HOST = SPR_OPENTTD_BASE + 190;
174
175 static const SpriteID SPR_IMG_CARGOFLOW = SPR_OPENTTD_BASE + 174;
176
177 static const SpriteID SPR_SIGNALS_BASE = SPR_OPENTTD_BASE + OPENTTD_SPRITE_COUNT;
178 static const uint16 PRESIGNAL_SPRITE_COUNT = 48;
179 static const uint16 PRESIGNAL_AND_SEMAPHORE_SPRITE_COUNT = 112;
180 static const uint16 PRESIGNAL_SEMAPHORE_AND_PBS_SPRITE_COUNT = 240;
181
182 static const SpriteID SPR_CANALS_BASE = SPR_SIGNALS_BASE + PRESIGNAL_SEMAPHORE_AND_PBS_SPRITE_COUNT;
183 static const uint16 CANALS_SPRITE_COUNT = 65;
184
186 static const SpriteID SPR_AQUEDUCT_BASE = SPR_CANALS_BASE + CANALS_SPRITE_COUNT;
187 static const SpriteID SPR_AQUEDUCT_RAMP_SW = SPR_AQUEDUCT_BASE + 0;
188 static const SpriteID SPR_AQUEDUCT_RAMP_SE = SPR_AQUEDUCT_BASE + 1;
189 static const SpriteID SPR_AQUEDUCT_RAMP_NE = SPR_AQUEDUCT_BASE + 2;
190 static const SpriteID SPR_AQUEDUCT_RAMP_NW = SPR_AQUEDUCT_BASE + 3;
191 static const SpriteID SPR_AQUEDUCT_MIDDLE_X = SPR_AQUEDUCT_BASE + 4;
192 static const SpriteID SPR_AQUEDUCT_MIDDLE_Y = SPR_AQUEDUCT_BASE + 5;
193 static const SpriteID SPR_AQUEDUCT_PILLAR_X = SPR_AQUEDUCT_BASE + 6;
194 static const SpriteID SPR_AQUEDUCT_PILLAR_Y = SPR_AQUEDUCT_BASE + 7;
195 static const uint16 AQUEDUCT_SPRITE_COUNT = 8;
196
198 static const SpriteID SPR_TRACKS_FOR_SLOPES_BASE = SPR_AQUEDUCT_BASE + AQUEDUCT_SPRITE_COUNT;
199 static const SpriteID SPR_TRACKS_FOR_SLOPES_RAIL_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 0;
200 static const SpriteID SPR_TRACKS_FOR_SLOPES_MONO_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 4;
201 static const SpriteID SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 8;
202 static const uint16 TRACKS_FOR_SLOPES_SPRITE_COUNT = 12;
203
204 static const SpriteID SPR_SLOPES_BASE = SPR_TRACKS_FOR_SLOPES_BASE + TRACKS_FOR_SLOPES_SPRITE_COUNT;
205 static const SpriteID SPR_SLOPES_INCLINED_OFFSET = 15;
206 static const SpriteID SPR_SLOPES_VIRTUAL_BASE = SPR_SLOPES_BASE - SPR_SLOPES_INCLINED_OFFSET; // The original foundations (see SPR_FOUNDATION_BASE below) are mapped before the additional foundations.
207 static const SpriteID SPR_TRKFOUND_BLOCK_SIZE = 22; // The normal track foundation sprites are organized in blocks of 22.
208 static const uint16 NORMAL_FOUNDATION_SPRITE_COUNT = 74;
210 static const SpriteID SPR_HALFTILE_FOUNDATION_BASE = SPR_SLOPES_BASE + NORMAL_FOUNDATION_SPRITE_COUNT;
211 static const SpriteID SPR_HALFTILE_BLOCK_SIZE = 4; // The half tile foundation sprites are organized in blocks of 4.
212 static const uint16 NORMAL_AND_HALFTILE_FOUNDATION_SPRITE_COUNT = 90;
213
214 static const SpriteID SPR_AUTORAIL_BASE = SPR_HALFTILE_FOUNDATION_BASE + NORMAL_AND_HALFTILE_FOUNDATION_SPRITE_COUNT;
215 static const uint16 AUTORAIL_SPRITE_COUNT = 55;
216
217 static const SpriteID SPR_ELRAIL_BASE = SPR_AUTORAIL_BASE + AUTORAIL_SPRITE_COUNT;
218 static const uint16 ELRAIL_SPRITE_COUNT = 48;
219
220 static const SpriteID SPR_2CCMAP_BASE = SPR_ELRAIL_BASE + ELRAIL_SPRITE_COUNT;
221 static const uint16 TWOCCMAP_SPRITE_COUNT = 256;
222
224 static const SpriteID SPR_SHORE_BASE = SPR_2CCMAP_BASE + TWOCCMAP_SPRITE_COUNT;
225 static const SpriteID SPR_SHORE_SPRITE_COUNT = 18;
226 static const SpriteID SPR_ORIGINALSHORE_START = 4062;
227 static const SpriteID SPR_ORIGINALSHORE_END = 4069;
228
229 static const SpriteID SPR_AIRPORTX_BASE = SPR_SHORE_BASE + SPR_SHORE_SPRITE_COUNT; // The sprites used for other airport angles
230 static const SpriteID SPR_NEWAIRPORT_TARMAC = SPR_AIRPORTX_BASE;
231 static const SpriteID SPR_NSRUNWAY1 = SPR_AIRPORTX_BASE + 1;
232 static const SpriteID SPR_NSRUNWAY2 = SPR_AIRPORTX_BASE + 2;
233 static const SpriteID SPR_NSRUNWAY3 = SPR_AIRPORTX_BASE + 3;
234 static const SpriteID SPR_NSRUNWAY4 = SPR_AIRPORTX_BASE + 4;
235 static const SpriteID SPR_NSRUNWAY_END = SPR_AIRPORTX_BASE + 5;
236 static const SpriteID SPR_NEWHANGAR_S = SPR_AIRPORTX_BASE + 6;
237 static const SpriteID SPR_NEWHANGAR_S_WALL = SPR_AIRPORTX_BASE + 7;
238 static const SpriteID SPR_NEWHANGAR_W = SPR_AIRPORTX_BASE + 8;
239 static const SpriteID SPR_NEWHANGAR_W_WALL = SPR_AIRPORTX_BASE + 9;
240 static const SpriteID SPR_NEWHANGAR_N = SPR_AIRPORTX_BASE + 10;
241 static const SpriteID SPR_NEWHANGAR_E = SPR_AIRPORTX_BASE + 11;
242 static const SpriteID SPR_NEWHELIPAD = SPR_AIRPORTX_BASE + 12;
243 static const SpriteID SPR_GRASS_RIGHT = SPR_AIRPORTX_BASE + 13;
244 static const SpriteID SPR_GRASS_LEFT = SPR_AIRPORTX_BASE + 14;
245 static const uint16 AIRPORTX_SPRITE_COUNT = 15;
246
248 static const SpriteID SPR_AIRPORT_PREVIEW_BASE = SPR_AIRPORTX_BASE + AIRPORTX_SPRITE_COUNT;
249 static const SpriteID SPR_AIRPORT_PREVIEW_SMALL = SPR_AIRPORT_PREVIEW_BASE;
250 static const SpriteID SPR_AIRPORT_PREVIEW_LARGE = SPR_AIRPORT_PREVIEW_BASE + 1;
251 static const SpriteID SPR_AIRPORT_PREVIEW_HELIPORT = SPR_AIRPORT_PREVIEW_BASE + 2;
252 static const SpriteID SPR_AIRPORT_PREVIEW_METROPOLITAN = SPR_AIRPORT_PREVIEW_BASE + 3;
253 static const SpriteID SPR_AIRPORT_PREVIEW_INTERNATIONAL = SPR_AIRPORT_PREVIEW_BASE + 4;
254 static const SpriteID SPR_AIRPORT_PREVIEW_COMMUTER = SPR_AIRPORT_PREVIEW_BASE + 5;
255 static const SpriteID SPR_AIRPORT_PREVIEW_HELIDEPOT = SPR_AIRPORT_PREVIEW_BASE + 6;
256 static const SpriteID SPR_AIRPORT_PREVIEW_INTERCONTINENTAL = SPR_AIRPORT_PREVIEW_BASE + 7;
257 static const SpriteID SPR_AIRPORT_PREVIEW_HELISTATION = SPR_AIRPORT_PREVIEW_BASE + 8;
258 static const SpriteID SPR_AIRPORT_PREVIEW_COUNT = 9;
259
260 static const SpriteID SPR_ROADSTOP_BASE = SPR_AIRPORT_PREVIEW_BASE + SPR_AIRPORT_PREVIEW_COUNT; // The sprites used for drive-through road stops
261 static const SpriteID SPR_BUS_STOP_DT_Y_W = SPR_ROADSTOP_BASE;
262 static const SpriteID SPR_BUS_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 1;
263 static const SpriteID SPR_BUS_STOP_DT_X_W = SPR_ROADSTOP_BASE + 2;
264 static const SpriteID SPR_BUS_STOP_DT_X_E = SPR_ROADSTOP_BASE + 3;
265 static const SpriteID SPR_TRUCK_STOP_DT_Y_W = SPR_ROADSTOP_BASE + 4;
266 static const SpriteID SPR_TRUCK_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 5;
267 static const SpriteID SPR_TRUCK_STOP_DT_X_W = SPR_ROADSTOP_BASE + 6;
268 static const SpriteID SPR_TRUCK_STOP_DT_X_E = SPR_ROADSTOP_BASE + 7;
269 static const uint16 ROADSTOP_SPRITE_COUNT = 8;
270
272 static const SpriteID SPR_TRAMWAY_BASE = SPR_ROADSTOP_BASE + ROADSTOP_SPRITE_COUNT;
273 static const SpriteID SPR_TRAMWAY_OVERLAY = SPR_TRAMWAY_BASE + 4;
274 static const SpriteID SPR_TRAMWAY_TRAM = SPR_TRAMWAY_BASE + 27;
275 static const SpriteID SPR_TRAMWAY_SLOPED_OFFSET = 11;
276 static const SpriteID SPR_TRAMWAY_BUS_STOP_DT_Y_W = SPR_TRAMWAY_BASE + 25;
277 static const SpriteID SPR_TRAMWAY_BUS_STOP_DT_Y_E = SPR_TRAMWAY_BASE + 23;
278 static const SpriteID SPR_TRAMWAY_BUS_STOP_DT_X_W = SPR_TRAMWAY_BASE + 24;
279 static const SpriteID SPR_TRAMWAY_BUS_STOP_DT_X_E = SPR_TRAMWAY_BASE + 26;
280 static const SpriteID SPR_TRAMWAY_PAVED_STRAIGHT_Y = SPR_TRAMWAY_BASE + 46;
281 static const SpriteID SPR_TRAMWAY_PAVED_STRAIGHT_X = SPR_TRAMWAY_BASE + 47;
282 static const SpriteID SPR_TRAMWAY_DEPOT_WITH_TRACK = SPR_TRAMWAY_BASE + 49;
283 static const SpriteID SPR_TRAMWAY_BACK_WIRES_STRAIGHT = SPR_TRAMWAY_BASE + 55;
284 static const SpriteID SPR_TRAMWAY_FRONT_WIRES_STRAIGHT = SPR_TRAMWAY_BASE + 56;
285 static const SpriteID SPR_TRAMWAY_BACK_WIRES_SLOPED = SPR_TRAMWAY_BASE + 68;
286 static const SpriteID SPR_TRAMWAY_FRONT_WIRES_SLOPED = SPR_TRAMWAY_BASE + 72;
287 static const SpriteID SPR_TRAMWAY_TUNNEL_WIRES = SPR_TRAMWAY_BASE + 80;
288 static const SpriteID SPR_TRAMWAY_BRIDGE = SPR_TRAMWAY_BASE + 107;
289 static const SpriteID SPR_TRAMWAY_DEPOT_NO_TRACK = SPR_TRAMWAY_BASE + 113;
290 static const uint16 TRAMWAY_SPRITE_COUNT = 119;
291
293 static const SpriteID SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + TRAMWAY_SPRITE_COUNT;
294 static const SpriteID SPR_ONEWAY_SLOPE_N_OFFSET = 6;
295 static const SpriteID SPR_ONEWAY_SLOPE_S_OFFSET = 12;
296 static const uint16 ONEWAY_SPRITE_COUNT = 18;
297
299 static const SpriteID SPR_RAILTYPE_TUNNEL_BASE = SPR_ONEWAY_BASE + ONEWAY_SPRITE_COUNT;
300 static const uint16 RAILTYPE_TUNNEL_BASE_COUNT = 16;
301
302 /* Not really a sprite, but an empty bounding box. Used to construct bounding boxes that help sorting the sprites, but do not have a sprite associated. */
303 static const SpriteID SPR_EMPTY_BOUNDING_BOX = SPR_RAILTYPE_TUNNEL_BASE + RAILTYPE_TUNNEL_BASE_COUNT;
304 static const uint16 EMPTY_BOUNDING_BOX_SPRITE_COUNT = 1;
305
306 /* Black palette sprite, needed for painting (fictive) tiles outside map */
307 static const SpriteID SPR_PALETTE_BASE = SPR_EMPTY_BOUNDING_BOX + EMPTY_BOUNDING_BOX_SPRITE_COUNT;
308 static const uint16 PALETTE_SPRITE_COUNT = 1;
309
310 /* From where can we start putting NewGRFs? */
311 static const SpriteID SPR_NEWGRFS_BASE = SPR_PALETTE_BASE + PALETTE_SPRITE_COUNT;
312
313 /* Manager face sprites */
314 static const SpriteID SPR_GRADIENT = 874; // background gradient behind manager face
315
316 /* Icon showing company colour. */
317 static const SpriteID SPR_COMPANY_ICON = 747;
318
319 /* is itself no foundation sprite, because tileh 0 has no foundation */
320 static const SpriteID SPR_FOUNDATION_BASE = 989;
321
322 /* Shadow cell */
323 static const SpriteID SPR_SHADOW_CELL = 1004;
324
325 /* Objects spritenumbers */
326 static const SpriteID SPR_TRANSMITTER = 2601;
327 static const SpriteID SPR_LIGHTHOUSE = 2602;
328 static const SpriteID SPR_TINYHQ_NORTH = 2603;
329 static const SpriteID SPR_TINYHQ_EAST = 2604;
330 static const SpriteID SPR_TINYHQ_WEST = 2605;
331 static const SpriteID SPR_TINYHQ_SOUTH = 2606;
332 static const SpriteID SPR_SMALLHQ_NORTH = 2607;
333 static const SpriteID SPR_SMALLHQ_EAST = 2608;
334 static const SpriteID SPR_SMALLHQ_WEST = 2609;
335 static const SpriteID SPR_SMALLHQ_SOUTH = 2610;
336 static const SpriteID SPR_MEDIUMHQ_NORTH = 2611;
337 static const SpriteID SPR_MEDIUMHQ_NORTH_WALL = 2612;
338 static const SpriteID SPR_MEDIUMHQ_EAST = 2613;
339 static const SpriteID SPR_MEDIUMHQ_EAST_WALL = 2614;
340 static const SpriteID SPR_MEDIUMHQ_WEST = 2615;
341 static const SpriteID SPR_MEDIUMHQ_WEST_WALL = 2616; // very tiny piece of wall
342 static const SpriteID SPR_MEDIUMHQ_SOUTH = 2617;
343 static const SpriteID SPR_LARGEHQ_NORTH_GROUND = 2618;
344 static const SpriteID SPR_LARGEHQ_NORTH_BUILD = 2619;
345 static const SpriteID SPR_LARGEHQ_EAST_GROUND = 2620;
346 static const SpriteID SPR_LARGEHQ_EAST_BUILD = 2621;
347 static const SpriteID SPR_LARGEHQ_WEST_GROUND = 2622;
348 static const SpriteID SPR_LARGEHQ_WEST_BUILD = 2623;
349 static const SpriteID SPR_LARGEHQ_SOUTH = 2624;
350 static const SpriteID SPR_HUGEHQ_NORTH_GROUND = 2625;
351 static const SpriteID SPR_HUGEHQ_NORTH_BUILD = 2626;
352 static const SpriteID SPR_HUGEHQ_EAST_GROUND = 2627;
353 static const SpriteID SPR_HUGEHQ_EAST_BUILD = 2628;
354 static const SpriteID SPR_HUGEHQ_WEST_GROUND = 2629;
355 static const SpriteID SPR_HUGEHQ_WEST_BUILD = 2630;
356 static const SpriteID SPR_HUGEHQ_SOUTH = 2631;
357 static const SpriteID SPR_CONCRETE_GROUND = 1420;
358 static const SpriteID SPR_STATUE_COMPANY = 2632;
359 static const SpriteID SPR_BOUGHT_LAND = 4790;
360
361 /* sprites for rail and rail stations*/
362 static const SpriteID SPR_RAIL_SNOW_OFFSET = 26;
363 static const SpriteID SPR_MONO_SNOW_OFFSET = 26;
364 static const SpriteID SPR_MGLV_SNOW_OFFSET = 26;
365
366 static const SpriteID SPR_ORIGINAL_SIGNALS_BASE = 1275;
367
368 static const SpriteID SPR_RAIL_SINGLE_X = 1005;
369 static const SpriteID SPR_RAIL_SINGLE_Y = 1006;
370 static const SpriteID SPR_RAIL_SINGLE_NORTH = 1007;
371 static const SpriteID SPR_RAIL_SINGLE_SOUTH = 1008;
372 static const SpriteID SPR_RAIL_SINGLE_EAST = 1009;
373 static const SpriteID SPR_RAIL_SINGLE_WEST = 1010;
374 static const SpriteID SPR_RAIL_TRACK_Y = 1011;
375 static const SpriteID SPR_RAIL_TRACK_X = 1012;
376 static const SpriteID SPR_RAIL_TRACK_BASE = 1018;
377 static const SpriteID SPR_RAIL_TRACK_N_S = 1035;
378 static const SpriteID SPR_RAIL_TRACK_Y_SNOW = 1037;
379 static const SpriteID SPR_RAIL_TRACK_X_SNOW = 1038;
380 static const SpriteID SPR_RAIL_DEPOT_SE_1 = 1063;
381 static const SpriteID SPR_RAIL_DEPOT_SE_2 = 1064;
382 static const SpriteID SPR_RAIL_DEPOT_SW_1 = 1065;
383 static const SpriteID SPR_RAIL_DEPOT_SW_2 = 1066;
384 static const SpriteID SPR_RAIL_DEPOT_NE = 1067;
385 static const SpriteID SPR_RAIL_DEPOT_NW = 1068;
386 static const SpriteID SPR_RAIL_PLATFORM_Y_FRONT = 1069;
387 static const SpriteID SPR_RAIL_PLATFORM_X_REAR = 1070;
388 static const SpriteID SPR_RAIL_PLATFORM_Y_REAR = 1071;
389 static const SpriteID SPR_RAIL_PLATFORM_X_FRONT = 1072;
390 static const SpriteID SPR_RAIL_PLATFORM_BUILDING_X = 1073;
391 static const SpriteID SPR_RAIL_PLATFORM_BUILDING_Y = 1074;
392 static const SpriteID SPR_RAIL_PLATFORM_PILLARS_Y_FRONT = 1075;
393 static const SpriteID SPR_RAIL_PLATFORM_PILLARS_X_REAR = 1076;
394 static const SpriteID SPR_RAIL_PLATFORM_PILLARS_Y_REAR = 1077;
395 static const SpriteID SPR_RAIL_PLATFORM_PILLARS_X_FRONT = 1078;
396 static const SpriteID SPR_RAIL_ROOF_STRUCTURE_X_TILE_A = 1079; // First half of the roof structure
397 static const SpriteID SPR_RAIL_ROOF_STRUCTURE_Y_TILE_A = 1080;
398 static const SpriteID SPR_RAIL_ROOF_STRUCTURE_X_TILE_B = 1081; // Second half of the roof structure
399 static const SpriteID SPR_RAIL_ROOF_STRUCTURE_Y_TILE_B = 1082;
400 static const SpriteID SPR_RAIL_ROOF_GLASS_X_TILE_A = 1083; // First half of the roof glass
401 static const SpriteID SPR_RAIL_ROOF_GLASS_Y_TILE_A = 1084;
402 static const SpriteID SPR_RAIL_ROOF_GLASS_X_TILE_B = 1085; // second half of the roof glass
403 static const SpriteID SPR_RAIL_ROOF_GLASS_Y_TILE_B = 1086;
404 static const SpriteID SPR_MONO_SINGLE_X = 1087;
405 static const SpriteID SPR_MONO_SINGLE_Y = 1088;
406 static const SpriteID SPR_MONO_SINGLE_NORTH = 1089;
407 static const SpriteID SPR_MONO_SINGLE_SOUTH = 1090;
408 static const SpriteID SPR_MONO_SINGLE_EAST = 1091;
409 static const SpriteID SPR_MONO_SINGLE_WEST = 1092;
410 static const SpriteID SPR_MONO_TRACK_Y = 1093;
411 static const SpriteID SPR_MONO_TRACK_X = 1094;
412 static const SpriteID SPR_MONO_TRACK_BASE = 1100;
413 static const SpriteID SPR_MONO_TRACK_N_S = 1117;
414 static const SpriteID SPR_MONO_TRACK_Y_SNOW = 1119;
415 static const SpriteID SPR_MONO_TRACK_X_SNOW = 1120;
416 static const SpriteID SPR_MGLV_SINGLE_X = 1169;
417 static const SpriteID SPR_MGLV_SINGLE_Y = 1170;
418 static const SpriteID SPR_MGLV_SINGLE_NORTH = 1171;
419 static const SpriteID SPR_MGLV_SINGLE_SOUTH = 1172;
420 static const SpriteID SPR_MGLV_SINGLE_EAST = 1173;
421 static const SpriteID SPR_MGLV_SINGLE_WEST = 1174;
422 static const SpriteID SPR_MGLV_TRACK_Y = 1175;
423 static const SpriteID SPR_MGLV_TRACK_X = 1176;
424 static const SpriteID SPR_MGLV_TRACK_BASE = 1182;
425 static const SpriteID SPR_MGLV_TRACK_Y_SNOW = 1184;
426 static const SpriteID SPR_MGLV_TRACK_X_SNOW = 1185;
427 static const SpriteID SPR_MGLV_TRACK_N_S = 1199;
428 static const SpriteID SPR_WAYPOINT_X_1 = SPR_OPENTTD_BASE + 78;
429 static const SpriteID SPR_WAYPOINT_X_2 = SPR_OPENTTD_BASE + 79;
430 static const SpriteID SPR_WAYPOINT_Y_1 = SPR_OPENTTD_BASE + 80;
431 static const SpriteID SPR_WAYPOINT_Y_2 = SPR_OPENTTD_BASE + 81;
432 /* see _track_sloped_sprites in rail_cmd.cpp for slope offsets */
433
434 /* Track fences */
435 static const SpriteID SPR_TRACK_FENCE_FLAT_X = 1301;
436 static const SpriteID SPR_TRACK_FENCE_FLAT_Y = 1302;
437 static const SpriteID SPR_TRACK_FENCE_FLAT_VERT = 1303;
438 static const SpriteID SPR_TRACK_FENCE_FLAT_HORZ = 1304;
439 static const SpriteID SPR_TRACK_FENCE_SLOPE_SW = 1305;
440 static const SpriteID SPR_TRACK_FENCE_SLOPE_SE = 1306;
441 static const SpriteID SPR_TRACK_FENCE_SLOPE_NE = 1307;
442 static const SpriteID SPR_TRACK_FENCE_SLOPE_NW = 1308;
443
444 /* Base sprites for elrail.
445 * Offsets via an enum are used so a complete list of absolute
446 * sprite numbers is unnecessary.
447 */
448 static const SpriteID SPR_WIRE_BASE = SPR_ELRAIL_BASE + 0;
449 static const SpriteID SPR_PYLON_BASE = SPR_ELRAIL_BASE + 28;
450
451 /* sprites for roads */
452 static const SpriteID SPR_ROAD_PAVED_STRAIGHT_Y = 1313;
453 static const SpriteID SPR_ROAD_PAVED_STRAIGHT_X = 1314;
454
455 /* sprites for airports and airfields*/
456 /* Small airports are AIRFIELD, everything else is AIRPORT */
457 static const SpriteID SPR_HELIPORT = 2633;
458 static const SpriteID SPR_AIRPORT_APRON = 2634;
459 static const SpriteID SPR_AIRPORT_AIRCRAFT_STAND = 2635;
460 static const SpriteID SPR_AIRPORT_TAXIWAY_NS_WEST = 2636;
461 static const SpriteID SPR_AIRPORT_TAXIWAY_EW_SOUTH = 2637;
462 static const SpriteID SPR_AIRPORT_TAXIWAY_XING_SOUTH = 2638;
463 static const SpriteID SPR_AIRPORT_TAXIWAY_XING_WEST = 2639;
464 static const SpriteID SPR_AIRPORT_TAXIWAY_NS_CTR = 2640;
465 static const SpriteID SPR_AIRPORT_TAXIWAY_XING_EAST = 2641;
466 static const SpriteID SPR_AIRPORT_TAXIWAY_NS_EAST = 2642;
467 static const SpriteID SPR_AIRPORT_TAXIWAY_EW_NORTH = 2643;
468 static const SpriteID SPR_AIRPORT_TAXIWAY_EW_CTR = 2644;
469 static const SpriteID SPR_AIRPORT_RUNWAY_EXIT_A = 2645;
470 static const SpriteID SPR_AIRPORT_RUNWAY_EXIT_B = 2646;
471 static const SpriteID SPR_AIRPORT_RUNWAY_EXIT_C = 2647;
472 static const SpriteID SPR_AIRPORT_RUNWAY_EXIT_D = 2648;
473 static const SpriteID SPR_AIRPORT_RUNWAY_END = 2649; // We should have different ends
474 static const SpriteID SPR_AIRPORT_TERMINAL_A = 2650;
475 static const SpriteID SPR_AIRPORT_TOWER = 2651;
476 static const SpriteID SPR_AIRPORT_CONCOURSE = 2652;
477 static const SpriteID SPR_AIRPORT_TERMINAL_B = 2653;
478 static const SpriteID SPR_AIRPORT_TERMINAL_C = 2654;
479 static const SpriteID SPR_AIRPORT_HANGAR_FRONT = 2655;
480 static const SpriteID SPR_AIRPORT_HANGAR_REAR = 2656;
481 static const SpriteID SPR_AIRFIELD_HANGAR_FRONT = 2657;
482 static const SpriteID SPR_AIRFIELD_HANGAR_REAR = 2658;
483 static const SpriteID SPR_AIRPORT_JETWAY_1 = 2659;
484 static const SpriteID SPR_AIRPORT_JETWAY_2 = 2660;
485 static const SpriteID SPR_AIRPORT_JETWAY_3 = 2661;
486 static const SpriteID SPR_AIRPORT_PASSENGER_TUNNEL = 2662;
487 static const SpriteID SPR_AIRPORT_FENCE_Y = 2663;
488 static const SpriteID SPR_AIRPORT_FENCE_X = 2664;
489 static const SpriteID SPR_AIRFIELD_TERM_A = 2665;
490 static const SpriteID SPR_AIRFIELD_TERM_B = 2666;
491 static const SpriteID SPR_AIRFIELD_TERM_C_GROUND = 2667;
492 static const SpriteID SPR_AIRFIELD_TERM_C_BUILD = 2668;
493 static const SpriteID SPR_AIRFIELD_APRON_A = 2669;
494 static const SpriteID SPR_AIRFIELD_APRON_B = 2670;
495 static const SpriteID SPR_AIRFIELD_APRON_C = 2671;
496 static const SpriteID SPR_AIRFIELD_APRON_D = 2672;
497 static const SpriteID SPR_AIRFIELD_RUNWAY_NEAR_END = 2673;
498 static const SpriteID SPR_AIRFIELD_RUNWAY_MIDDLE = 2674;
499 static const SpriteID SPR_AIRFIELD_RUNWAY_FAR_END = 2675;
500 static const SpriteID SPR_AIRFIELD_WIND_1 = 2676;
501 static const SpriteID SPR_AIRFIELD_WIND_2 = 2677;
502 static const SpriteID SPR_AIRFIELD_WIND_3 = 2678;
503 static const SpriteID SPR_AIRFIELD_WIND_4 = 2679;
504 static const SpriteID SPR_AIRPORT_RADAR_1 = 2680;
505 static const SpriteID SPR_AIRPORT_RADAR_2 = 2681;
506 static const SpriteID SPR_AIRPORT_RADAR_3 = 2682;
507 static const SpriteID SPR_AIRPORT_RADAR_4 = 2683;
508 static const SpriteID SPR_AIRPORT_RADAR_5 = 2684;
509 static const SpriteID SPR_AIRPORT_RADAR_6 = 2685;
510 static const SpriteID SPR_AIRPORT_RADAR_7 = 2686;
511 static const SpriteID SPR_AIRPORT_RADAR_8 = 2687;
512 static const SpriteID SPR_AIRPORT_RADAR_9 = 2688;
513 static const SpriteID SPR_AIRPORT_RADAR_A = 2689;
514 static const SpriteID SPR_AIRPORT_RADAR_B = 2690;
515 static const SpriteID SPR_AIRPORT_RADAR_C = 2691;
516 static const SpriteID SPR_AIRPORT_HELIPAD = SPR_OPENTTD_BASE + 86;
517 static const SpriteID SPR_AIRPORT_HELIDEPOT_OFFICE = 2095;
518
519 /* Road Stops
520 * Road stops have a ground tile and 3 buildings, one on each side
521 * (except the side where the entry is). These are marked _A _B and _C */
522 static const SpriteID SPR_BUS_STOP_NE_GROUND = 2692;
523 static const SpriteID SPR_BUS_STOP_SE_GROUND = 2693;
524 static const SpriteID SPR_BUS_STOP_SW_GROUND = 2694;
525 static const SpriteID SPR_BUS_STOP_NW_GROUND = 2695;
526 static const SpriteID SPR_BUS_STOP_NE_BUILD_A = 2696;
527 static const SpriteID SPR_BUS_STOP_SE_BUILD_A = 2697;
528 static const SpriteID SPR_BUS_STOP_SW_BUILD_A = 2698;
529 static const SpriteID SPR_BUS_STOP_NW_BUILD_A = 2699;
530 static const SpriteID SPR_BUS_STOP_NE_BUILD_B = 2700;
531 static const SpriteID SPR_BUS_STOP_SE_BUILD_B = 2701;
532 static const SpriteID SPR_BUS_STOP_SW_BUILD_B = 2702;
533 static const SpriteID SPR_BUS_STOP_NW_BUILD_B = 2703;
534 static const SpriteID SPR_BUS_STOP_NE_BUILD_C = 2704;
535 static const SpriteID SPR_BUS_STOP_SE_BUILD_C = 2705;
536 static const SpriteID SPR_BUS_STOP_SW_BUILD_C = 2706;
537 static const SpriteID SPR_BUS_STOP_NW_BUILD_C = 2707;
538 static const SpriteID SPR_TRUCK_STOP_NE_GROUND = 2708;
539 static const SpriteID SPR_TRUCK_STOP_SE_GROUND = 2709;
540 static const SpriteID SPR_TRUCK_STOP_SW_GROUND = 2710;
541 static const SpriteID SPR_TRUCK_STOP_NW_GROUND = 2711;
542 static const SpriteID SPR_TRUCK_STOP_NE_BUILD_A = 2712;
543 static const SpriteID SPR_TRUCK_STOP_SE_BUILD_A = 2713;
544 static const SpriteID SPR_TRUCK_STOP_SW_BUILD_A = 2714;
545 static const SpriteID SPR_TRUCK_STOP_NW_BUILD_A = 2715;
546 static const SpriteID SPR_TRUCK_STOP_NE_BUILD_B = 2716;
547 static const SpriteID SPR_TRUCK_STOP_SE_BUILD_B = 2717;
548 static const SpriteID SPR_TRUCK_STOP_SW_BUILD_B = 2718;
549 static const SpriteID SPR_TRUCK_STOP_NW_BUILD_B = 2719;
550 static const SpriteID SPR_TRUCK_STOP_NE_BUILD_C = 2720;
551 static const SpriteID SPR_TRUCK_STOP_SE_BUILD_C = 2721;
552 static const SpriteID SPR_TRUCK_STOP_SW_BUILD_C = 2722;
553 static const SpriteID SPR_TRUCK_STOP_NW_BUILD_C = 2723;
554
555 /* Sprites for docks
556 * Docks consist of two tiles, the sloped one and the flat one */
557 static const SpriteID SPR_DOCK_SLOPE_NE = 2727;
558 static const SpriteID SPR_DOCK_SLOPE_SE = 2728;
559 static const SpriteID SPR_DOCK_SLOPE_SW = 2729;
560 static const SpriteID SPR_DOCK_SLOPE_NW = 2730;
561 static const SpriteID SPR_DOCK_FLAT_X = 2731; // for NE and SW
562 static const SpriteID SPR_DOCK_FLAT_Y = 2732; // for NW and SE
563 static const SpriteID SPR_BUOY = 4076; // XXX this sucks, because it displays wrong stuff on canals
564
565 /* Sprites for road */
566 static const SpriteID SPR_ROAD_Y = 1332;
567 static const SpriteID SPR_ROAD_X = 1333;
568 static const SpriteID SPR_ROAD_SLOPE_START = 1343;
569 static const SpriteID SPR_ROAD_Y_SNOW = 1351;
570 static const SpriteID SPR_ROAD_X_SNOW = 1352;
571 /* see _road_sloped_sprites_offset in road_cmd.cpp for offsets for sloped road tiles */
572 static const SpriteID SPR_ROAD_DEPOT = 1408;
573
574 static const SpriteID SPR_EXCAVATION_X = 1414;
575 static const SpriteID SPR_EXCAVATION_Y = 1415;
576
577 /* Landscape sprites */
578 static const SpriteID SPR_FLAT_BARE_LAND = 3924;
579 static const SpriteID SPR_FLAT_1_THIRD_GRASS_TILE = 3943;
580 static const SpriteID SPR_FLAT_2_THIRD_GRASS_TILE = 3962;
581 static const SpriteID SPR_FLAT_GRASS_TILE = 3981;
582 static const SpriteID SPR_FLAT_ROUGH_LAND = 4000;
583 static const SpriteID SPR_FLAT_ROUGH_LAND_1 = 4019;
584 static const SpriteID SPR_FLAT_ROUGH_LAND_2 = 4020;
585 static const SpriteID SPR_FLAT_ROUGH_LAND_3 = 4021;
586 static const SpriteID SPR_FLAT_ROUGH_LAND_4 = 4022;
587 static const SpriteID SPR_FLAT_ROCKY_LAND_1 = 4023;
588 static const SpriteID SPR_FLAT_ROCKY_LAND_2 = 4042;
589 static const SpriteID SPR_FLAT_WATER_TILE = 4061;
590 static const SpriteID SPR_FLAT_1_QUART_SNOW_DESERT_TILE = 4493;
591 static const SpriteID SPR_FLAT_2_QUART_SNOW_DESERT_TILE = 4512;
592 static const SpriteID SPR_FLAT_3_QUART_SNOW_DESERT_TILE = 4531;
593 static const SpriteID SPR_FLAT_SNOW_DESERT_TILE = 4550;
594
595 /* Hedge, Farmland-fence sprites */
596 static const SpriteID SPR_HEDGE_BUSHES = 4090;
597 static const SpriteID SPR_HEDGE_BUSHES_WITH_GATE = 4096;
598 static const SpriteID SPR_HEDGE_FENCE = 4102;
599 static const SpriteID SPR_HEDGE_BLOOMBUSH_YELLOW = 4108;
600 static const SpriteID SPR_HEDGE_BLOOMBUSH_RED = 4114;
601 static const SpriteID SPR_HEDGE_STONE = 4120;
602
603 /* Farmland sprites, only flat tiles listed, various stages */
604 static const SpriteID SPR_FARMLAND_BARE = 4126;
605 static const SpriteID SPR_FARMLAND_STATE_1 = 4145;
606 static const SpriteID SPR_FARMLAND_STATE_2 = 4164;
607 static const SpriteID SPR_FARMLAND_STATE_3 = 4183;
608 static const SpriteID SPR_FARMLAND_STATE_4 = 4202;
609 static const SpriteID SPR_FARMLAND_STATE_5 = 4221;
610 static const SpriteID SPR_FARMLAND_STATE_6 = 4240;
611 static const SpriteID SPR_FARMLAND_STATE_7 = 4259;
612 static const SpriteID SPR_FARMLAND_HAYPACKS = 4278;
613
614 /* Water-related sprites */
615 static const SpriteID SPR_SHIP_DEPOT_SE_FRONT = 4070;
616 static const SpriteID SPR_SHIP_DEPOT_SW_FRONT = 4071;
617 static const SpriteID SPR_SHIP_DEPOT_NW = 4072;
618 static const SpriteID SPR_SHIP_DEPOT_NE = 4073;
619 static const SpriteID SPR_SHIP_DEPOT_SE_REAR = 4074;
620 static const SpriteID SPR_SHIP_DEPOT_SW_REAR = 4075;
621 /* here come sloped water sprites */
622 static const SpriteID SPR_WATER_SLOPE_Y_UP = SPR_CANALS_BASE + 0; // Water flowing negative Y direction
623 static const SpriteID SPR_WATER_SLOPE_X_DOWN = SPR_CANALS_BASE + 1; // positive X
624 static const SpriteID SPR_WATER_SLOPE_X_UP = SPR_CANALS_BASE + 2; // negative X
625 static const SpriteID SPR_WATER_SLOPE_Y_DOWN = SPR_CANALS_BASE + 3; // positive Y
626 /* sprites for the locks
627 * there are 4 kinds of locks, each of them is 3 tiles long.
628 * the four kinds are running in the X and Y direction and
629 * are "lowering" either in the "+" or the "-" direction.
630 * the three tiles are the center tile (where the slope is)
631 * and a bottom and a top tile */
632 static const SpriteID SPR_LOCK_BASE = SPR_CANALS_BASE + 4;
633 static const SpriteID SPR_LOCK_Y_UP_CENTER_REAR = SPR_CANALS_BASE + 4;
634 static const SpriteID SPR_LOCK_X_DOWN_CENTER_REAR = SPR_CANALS_BASE + 5;
635 static const SpriteID SPR_LOCK_X_UP_CENTER_REAR = SPR_CANALS_BASE + 6;
636 static const SpriteID SPR_LOCK_Y_DOWN_CENTER_REAR = SPR_CANALS_BASE + 7;
637 static const SpriteID SPR_LOCK_Y_UP_CENTER_FRONT = SPR_CANALS_BASE + 8;
638 static const SpriteID SPR_LOCK_X_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 9;
639 static const SpriteID SPR_LOCK_X_UP_CENTER_FRONT = SPR_CANALS_BASE + 10;
640 static const SpriteID SPR_LOCK_Y_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 11;
641 static const SpriteID SPR_LOCK_Y_UP_BOTTOM_REAR = SPR_CANALS_BASE + 12;
642 static const SpriteID SPR_LOCK_X_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 13;
643 static const SpriteID SPR_LOCK_X_UP_BOTTOM_REAR = SPR_CANALS_BASE + 14;
644 static const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 15;
645 static const SpriteID SPR_LOCK_Y_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 16;
646 static const SpriteID SPR_LOCK_X_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 17;
647 static const SpriteID SPR_LOCK_X_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 18;
648 static const SpriteID SPR_LOCK_Y_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 19;
649 static const SpriteID SPR_LOCK_Y_UP_TOP_REAR = SPR_CANALS_BASE + 20;
650 static const SpriteID SPR_LOCK_X_DOWN_TOP_REAR = SPR_CANALS_BASE + 21;
651 static const SpriteID SPR_LOCK_X_UP_TOP_REAR = SPR_CANALS_BASE + 22;
652 static const SpriteID SPR_LOCK_Y_DOWN_TOP_REAR = SPR_CANALS_BASE + 23;
653 static const SpriteID SPR_LOCK_Y_UP_TOP_FRONT = SPR_CANALS_BASE + 24;
654 static const SpriteID SPR_LOCK_X_DOWN_TOP_FRONT = SPR_CANALS_BASE + 25;
655 static const SpriteID SPR_LOCK_X_UP_TOP_FRONT = SPR_CANALS_BASE + 26;
656 static const SpriteID SPR_LOCK_Y_DOWN_TOP_FRONT = SPR_CANALS_BASE + 27;
657 static const SpriteID SPR_CANAL_DIKES_BASE = SPR_CANALS_BASE + 52;
658
659 /* Sprites for tunnels and bridges */
660 static const SpriteID SPR_TUNNEL_ENTRY_REAR_RAIL = 2365;
661 static const SpriteID SPR_TUNNEL_ENTRY_REAR_MONO = 2373;
662 static const SpriteID SPR_TUNNEL_ENTRY_REAR_MAGLEV = 2381;
663 static const SpriteID SPR_TUNNEL_ENTRY_REAR_ROAD = 2389;
664
665 /* Level crossings */
666 static const SpriteID SPR_CROSSING_OFF_X_RAIL = 1370;
667 static const SpriteID SPR_CROSSING_OFF_X_MONO = 1382;
668 static const SpriteID SPR_CROSSING_OFF_X_MAGLEV = 1394;
669
670 /* bridge type sprites */
671 static const SpriteID SPR_PILLARS_BASE = SPR_OPENTTD_BASE + 14;
672
673 /* Wooden bridge (type 0) */
674 static const SpriteID SPR_BTWDN_RAIL_Y_REAR = 2545;
675 static const SpriteID SPR_BTWDN_RAIL_X_REAR = 2546;
676 static const SpriteID SPR_BTWDN_ROAD_Y_REAR = 2547;
677 static const SpriteID SPR_BTWDN_ROAD_X_REAR = 2548;
678 static const SpriteID SPR_BTWDN_Y_FRONT = 2549;
679 static const SpriteID SPR_BTWDN_X_FRONT = 2550;
680 static const SpriteID SPR_BTWDN_Y_PILLAR = 2551;
681 static const SpriteID SPR_BTWDN_X_PILLAR = 2552;
682 static const SpriteID SPR_BTWDN_MONO_Y_REAR = 4360;
683 static const SpriteID SPR_BTWDN_MONO_X_REAR = 4361;
684 static const SpriteID SPR_BTWDN_MGLV_Y_REAR = 4400;
685 static const SpriteID SPR_BTWDN_MGLV_X_REAR = 4401;
686 /* ramps */
687 static const SpriteID SPR_BTWDN_ROAD_RAMP_Y_DOWN = 2529;
688 static const SpriteID SPR_BTWDN_ROAD_RAMP_X_DOWN = 2530;
689 static const SpriteID SPR_BTWDN_ROAD_RAMP_X_UP = 2531; // for some weird reason the order is swapped
690 static const SpriteID SPR_BTWDN_ROAD_RAMP_Y_UP = 2532; // between X and Y.
691 static const SpriteID SPR_BTWDN_ROAD_Y_SLOPE_UP = 2533;
692 static const SpriteID SPR_BTWDN_ROAD_X_SLOPE_UP = 2534;
693 static const SpriteID SPR_BTWDN_ROAD_Y_SLOPE_DOWN = 2535;
694 static const SpriteID SPR_BTWDN_ROAD_X_SLOPE_DOWN = 2536;
695 static const SpriteID SPR_BTWDN_RAIL_RAMP_Y_DOWN = 2537;
696 static const SpriteID SPR_BTWDN_RAIL_RAMP_X_DOWN = 2538;
697 static const SpriteID SPR_BTWDN_RAIL_RAMP_X_UP = 2539; // for some weird reason the order is swapped
698 static const SpriteID SPR_BTWDN_RAIL_RAMP_Y_UP = 2540; // between X and Y.
699 static const SpriteID SPR_BTWDN_RAIL_Y_SLOPE_UP = 2541;
700 static const SpriteID SPR_BTWDN_RAIL_X_SLOPE_UP = 2542;
701 static const SpriteID SPR_BTWDN_RAIL_Y_SLOPE_DOWN = 2543;
702 static const SpriteID SPR_BTWDN_RAIL_X_SLOPE_DOWN = 2544;
703 static const SpriteID SPR_BTWDN_MONO_RAMP_Y_DOWN = 4352;
704 static const SpriteID SPR_BTWDN_MONO_RAMP_X_DOWN = 4353;
705 static const SpriteID SPR_BTWDN_MONO_RAMP_X_UP = 4354; // for some weird reason the order is swapped
706 static const SpriteID SPR_BTWDN_MONO_RAMP_Y_UP = 4355; // between X and Y.
707 static const SpriteID SPR_BTWDN_MONO_Y_SLOPE_UP = 4356;
708 static const SpriteID SPR_BTWDN_MONO_X_SLOPE_UP = 4357;
709 static const SpriteID SPR_BTWDN_MONO_Y_SLOPE_DOWN = 4358;
710 static const SpriteID SPR_BTWDN_MONO_X_SLOPE_DOWN = 4359;
711 static const SpriteID SPR_BTWDN_MGLV_RAMP_Y_DOWN = 4392;
712 static const SpriteID SPR_BTWDN_MGLV_RAMP_X_DOWN = 4393;
713 static const SpriteID SPR_BTWDN_MGLV_RAMP_X_UP = 4394; // for some weird reason the order is swapped
714 static const SpriteID SPR_BTWDN_MGLV_RAMP_Y_UP = 4395; // between X and Y.
715 static const SpriteID SPR_BTWDN_MGLV_Y_SLOPE_UP = 4396;
716 static const SpriteID SPR_BTWDN_MGLV_X_SLOPE_UP = 4397;
717 static const SpriteID SPR_BTWDN_MGLV_Y_SLOPE_DOWN = 4398;
718 static const SpriteID SPR_BTWDN_MGLV_X_SLOPE_DOWN = 4399;
719
720 /* Steel Girder with arches
721 * BTSGA == Bridge Type Steel Girder Arched
722 * This is bridge type number 2 */
723 static const SpriteID SPR_BTSGA_RAIL_X_REAR = 2499;
724 static const SpriteID SPR_BTSGA_RAIL_Y_REAR = 2500;
725 static const SpriteID SPR_BTSGA_ROAD_X_REAR = 2501;
726 static const SpriteID SPR_BTSGA_ROAD_Y_REAR = 2502;
727 static const SpriteID SPR_BTSGA_X_FRONT = 2503;
728 static const SpriteID SPR_BTSGA_Y_FRONT = 2504;
729 static const SpriteID SPR_BTSGA_X_PILLAR = 2505;
730 static const SpriteID SPR_BTSGA_Y_PILLAR = 2506;
731 static const SpriteID SPR_BTSGA_MONO_X_REAR = 4324;
732 static const SpriteID SPR_BTSGA_MONO_Y_REAR = 4325;
733 static const SpriteID SPR_BTSGA_MGLV_X_REAR = 4364;
734 static const SpriteID SPR_BTSGA_MGLV_Y_REAR = 4365;
735
736 /* BTSUS == Suspension bridge
737 * TILE_* denotes the different tiles a suspension bridge
738 * can have
739 * TILE_A and TILE_B are the "beginnings" and "ends" of the
740 * suspension system. They have small rectangular endcaps
741 * TILE_C and TILE_D look almost identical to TILE_A and
742 * TILE_B, but they do not have the "endcaps". They form the
743 * middle part
744 * TILE_E is a condensed configuration of two pillars. while they
745 * are usually 2 pillars apart, they only have 1 pillar separation
746 * here
747 * TILE_F is an extended configuration of pillars. They are
748 * plugged in when pillars should be 3 tiles apart
749 */
750 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_A = 2453;
751 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_B = 2454;
752 static const SpriteID SPR_BTSUS_Y_FRONT_TILE_A = 2455;
753 static const SpriteID SPR_BTSUS_Y_FRONT_TILE_B = 2456;
754 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_D = 2457;
755 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_C = 2458;
756 static const SpriteID SPR_BTSUS_Y_FRONT_TILE_D = 2459;
757 static const SpriteID SPR_BTSUS_Y_FRONT_TILE_C = 2460;
758 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_A = 2461;
759 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_B = 2462;
760 static const SpriteID SPR_BTSUS_X_FRONT_TILE_A = 2463;
761 static const SpriteID SPR_BTSUS_X_FRONT_TILE_B = 2464;
762 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_D = 2465;
763 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_C = 2466;
764 static const SpriteID SPR_BTSUS_X_FRONT_TILE_D = 2467;
765 static const SpriteID SPR_BTSUS_X_FRONT_TILE_C = 2468;
766 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_A = 2469;
767 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_B = 2470;
768 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_D = 2471;
769 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_C = 2472;
770 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_A = 2473;
771 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_B = 2474;
772 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_D = 2475;
773 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_C = 2476;
774 static const SpriteID SPR_BTSUS_Y_PILLAR_TILE_A = 2477;
775 static const SpriteID SPR_BTSUS_Y_PILLAR_TILE_B = 2478;
776 static const SpriteID SPR_BTSUS_Y_PILLAR_TILE_D = 2479;
777 static const SpriteID SPR_BTSUS_Y_PILLAR_TILE_C = 2480;
778 static const SpriteID SPR_BTSUS_X_PILLAR_TILE_A = 2481;
779 static const SpriteID SPR_BTSUS_X_PILLAR_TILE_B = 2482;
780 static const SpriteID SPR_BTSUS_X_PILLAR_TILE_D = 2483;
781 static const SpriteID SPR_BTSUS_X_PILLAR_TILE_C = 2484;
782 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_E = 2485;
783 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_E = 2486;
784 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_E = 2487;
785 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_E = 2488;
786 static const SpriteID SPR_BTSUS_Y_FRONT_TILE_E = 2489;
787 static const SpriteID SPR_BTSUS_X_FRONT_TILE_E = 2490;
788 static const SpriteID SPR_BTSUS_Y_PILLAR_TILE_E = 2491;
789 static const SpriteID SPR_BTSUS_X_PILLAR_TILE_E = 2492;
790 static const SpriteID SPR_BTSUS_RAIL_X_REAR_TILE_F = 2493;
791 static const SpriteID SPR_BTSUS_RAIL_Y_REAR_TILE_F = 2494;
792 static const SpriteID SPR_BTSUS_ROAD_X_REAR_TILE_F = 2495;
793 static const SpriteID SPR_BTSUS_ROAD_Y_REAR_TILE_F = 2496;
794 static const SpriteID SPR_BTSUS_X_FRONT = 2497;
795 static const SpriteID SPR_BTSUS_Y_FRONT = 2498;
796 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_A = 4334;
797 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_B = 4335;
798 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_D = 4336;
799 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_C = 4337;
800 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_A = 4338;
801 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_B = 4339;
802 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_D = 4340;
803 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_C = 4341;
804 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_E = 4342;
805 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_E = 4343;
806 static const SpriteID SPR_BTSUS_MONO_X_REAR_TILE_F = 4344;
807 static const SpriteID SPR_BTSUS_MONO_Y_REAR_TILE_F = 4345;
808 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_A = 4374;
809 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_B = 4375;
810 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_D = 4376;
811 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_C = 4377;
812 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_A = 4378;
813 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_B = 4379;
814 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_D = 4380;
815 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_C = 4381;
816 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_E = 4382;
817 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_E = 4383;
818 static const SpriteID SPR_BTSUS_MGLV_X_REAR_TILE_F = 4384;
819 static const SpriteID SPR_BTSUS_MGLV_Y_REAR_TILE_F = 4385;
820
821 /* cantilever bridges
822 * They have three different kinds of tiles:
823 * END(ing), MID(dle), BEG(ginning) */
824 static const SpriteID SPR_BTCAN_RAIL_X_BEG = 2507;
825 static const SpriteID SPR_BTCAN_RAIL_X_MID = 2508;
826 static const SpriteID SPR_BTCAN_RAIL_X_END = 2509;
827 static const SpriteID SPR_BTCAN_RAIL_Y_END = 2510;
828 static const SpriteID SPR_BTCAN_RAIL_Y_MID = 2511;
829 static const SpriteID SPR_BTCAN_RAIL_Y_BEG = 2512;
830 static const SpriteID SPR_BTCAN_ROAD_X_BEG = 2513;
831 static const SpriteID SPR_BTCAN_ROAD_X_MID = 2514;
832 static const SpriteID SPR_BTCAN_ROAD_X_END = 2515;
833 static const SpriteID SPR_BTCAN_ROAD_Y_END = 2516;
834 static const SpriteID SPR_BTCAN_ROAD_Y_MID = 2517;
835 static const SpriteID SPR_BTCAN_ROAD_Y_BEG = 2518;
836 static const SpriteID SPR_BTCAN_X_FRONT_BEG = 2519;
837 static const SpriteID SPR_BTCAN_X_FRONT_MID = 2520;
838 static const SpriteID SPR_BTCAN_X_FRONT_END = 2521;
839 static const SpriteID SPR_BTCAN_Y_FRONT_END = 2522;
840 static const SpriteID SPR_BTCAN_Y_FRONT_MID = 2523;
841 static const SpriteID SPR_BTCAN_Y_FRONT_BEG = 2524;
842 static const SpriteID SPR_BTCAN_X_PILLAR_BEG = 2525;
843 static const SpriteID SPR_BTCAN_X_PILLAR_MID = 2526;
844 static const SpriteID SPR_BTCAN_Y_PILLAR_MID = 2527;
845 static const SpriteID SPR_BTCAN_Y_PILLAR_BEG = 2528;
846 static const SpriteID SPR_BTCAN_MONO_X_BEG = 4346;
847 static const SpriteID SPR_BTCAN_MONO_X_MID = 4347;
848 static const SpriteID SPR_BTCAN_MONO_X_END = 4348;
849 static const SpriteID SPR_BTCAN_MONO_Y_END = 4349;
850 static const SpriteID SPR_BTCAN_MONO_Y_MID = 4350;
851 static const SpriteID SPR_BTCAN_MONO_Y_BEG = 4351;
852 static const SpriteID SPR_BTCAN_MGLV_X_BEG = 4386;
853 static const SpriteID SPR_BTCAN_MGLV_X_MID = 4387;
854 static const SpriteID SPR_BTCAN_MGLV_X_END = 4388;
855 static const SpriteID SPR_BTCAN_MGLV_Y_END = 4389;
856 static const SpriteID SPR_BTCAN_MGLV_Y_MID = 4390;
857 static const SpriteID SPR_BTCAN_MGLV_Y_BEG = 4391;
858
859 /* little concrete bridge */
860 static const SpriteID SPR_BTCON_RAIL_X = 2493;
861 static const SpriteID SPR_BTCON_RAIL_Y = 2494;
862 static const SpriteID SPR_BTCON_ROAD_X = 2495;
863 static const SpriteID SPR_BTCON_ROAD_Y = 2496;
864 static const SpriteID SPR_BTCON_X_FRONT = 2497;
865 static const SpriteID SPR_BTCON_Y_FRONT = 2498;
866 static const SpriteID SPR_BTCON_X_PILLAR = 2505;
867 static const SpriteID SPR_BTCON_Y_PILLAR = 2506;
868 static const SpriteID SPR_BTCON_MONO_X = 4344;
869 static const SpriteID SPR_BTCON_MONO_Y = 4345;
870 static const SpriteID SPR_BTCON_MGLV_X = 4384;
871 static const SpriteID SPR_BTCON_MGLV_Y = 4385;
872
873 /* little steel girder bridge */
874 static const SpriteID SPR_BTGIR_RAIL_X = 2553;
875 static const SpriteID SPR_BTGIR_RAIL_Y = 2554;
876 static const SpriteID SPR_BTGIR_ROAD_X = 2555;
877 static const SpriteID SPR_BTGIR_ROAD_Y = 2556;
878 static const SpriteID SPR_BTGIR_X_FRONT = 2557;
879 static const SpriteID SPR_BTGIR_Y_FRONT = 2558;
880 static const SpriteID SPR_BTGIR_X_PILLAR = 2505;
881 static const SpriteID SPR_BTGIR_Y_PILLAR = 2506;
882 static const SpriteID SPR_BTGIR_MONO_X = 4362;
883 static const SpriteID SPR_BTGIR_MONO_Y = 4363;
884 static const SpriteID SPR_BTGIR_MGLV_X = 4402;
885 static const SpriteID SPR_BTGIR_MGLV_Y = 4403;
886
887 /* tubular bridges
888 * tubular bridges have 3 kinds of tiles:
889 * a start tile (with only half a tube on the far side, marked _BEG
890 * a middle tile (full tunnel), marked _MID
891 * and an end tile (half a tube on the near side, marked _END
892 */
893 static const SpriteID SPR_BTTUB_X_FRONT_BEG = 2559;
894 static const SpriteID SPR_BTTUB_X_FRONT_MID = 2560;
895 static const SpriteID SPR_BTTUB_X_FRONT_END = 2561;
896 static const SpriteID SPR_BTTUB_Y_FRONT_END = 2562;
897 static const SpriteID SPR_BTTUB_Y_FRONT_MID = 2563;
898 static const SpriteID SPR_BTTUB_Y_FRONT_BEG = 2564;
899 static const SpriteID SPR_BTTUB_X_PILLAR_BEG = 2565;
900 static const SpriteID SPR_BTTUB_X_PILLAR_MID = 2566;
901 static const SpriteID SPR_BTTUB_Y_PILLAR_MID = 2567;
902 static const SpriteID SPR_BTTUB_Y_PILLAR_BEG = 2568;
903 static const SpriteID SPR_BTTUB_X_RAIL_REAR_BEG = 2569;
904 static const SpriteID SPR_BTTUB_X_RAIL_REAR_MID = 2570;
905 static const SpriteID SPR_BTTUB_X_RAIL_REAR_END = 2571;
906 static const SpriteID SPR_BTTUB_Y_RAIL_REAR_BEG = 2572;
907 static const SpriteID SPR_BTTUB_Y_RAIL_REAR_MID = 2573;
908 static const SpriteID SPR_BTTUB_Y_RAIL_REAR_END = 2574;
909 static const SpriteID SPR_BTTUB_X_ROAD_REAR_BEG = 2575;
910 static const SpriteID SPR_BTTUB_X_ROAD_REAR_MID = 2576;
911 static const SpriteID SPR_BTTUB_X_ROAD_REAR_END = 2577;
912 static const SpriteID SPR_BTTUB_Y_ROAD_REAR_BEG = 2578;
913 static const SpriteID SPR_BTTUB_Y_ROAD_REAR_MID = 2579;
914 static const SpriteID SPR_BTTUB_Y_ROAD_REAR_END = 2580;
915 static const SpriteID SPR_BTTUB_X_MONO_REAR_BEG = 2581;
916 static const SpriteID SPR_BTTUB_X_MONO_REAR_MID = 2582;
917 static const SpriteID SPR_BTTUB_X_MONO_REAR_END = 2583;
918 static const SpriteID SPR_BTTUB_Y_MONO_REAR_BEG = 2584;
919 static const SpriteID SPR_BTTUB_Y_MONO_REAR_MID = 2585;
920 static const SpriteID SPR_BTTUB_Y_MONO_REAR_END = 2586;
921 static const SpriteID SPR_BTTUB_X_MGLV_REAR_BEG = 2587;
922 static const SpriteID SPR_BTTUB_X_MGLV_REAR_MID = 2588;
923 static const SpriteID SPR_BTTUB_X_MGLV_REAR_END = 2589;
924 static const SpriteID SPR_BTTUB_Y_MGLV_REAR_BEG = 2590;
925 static const SpriteID SPR_BTTUB_Y_MGLV_REAR_MID = 2591;
926 static const SpriteID SPR_BTTUB_Y_MGLV_REAR_END = 2592;
927
928
929 /* ramps (for all bridges except wood and tubular?)*/
930 static const SpriteID SPR_BTGEN_RAIL_X_SLOPE_DOWN = 2437;
931 static const SpriteID SPR_BTGEN_RAIL_X_SLOPE_UP = 2438;
932 static const SpriteID SPR_BTGEN_RAIL_Y_SLOPE_DOWN = 2439;
933 static const SpriteID SPR_BTGEN_RAIL_Y_SLOPE_UP = 2440;
934 static const SpriteID SPR_BTGEN_RAIL_RAMP_X_UP = 2441;
935 static const SpriteID SPR_BTGEN_RAIL_RAMP_X_DOWN = 2442;
936 static const SpriteID SPR_BTGEN_RAIL_RAMP_Y_UP = 2443;
937 static const SpriteID SPR_BTGEN_RAIL_RAMP_Y_DOWN = 2444;
938 static const SpriteID SPR_BTGEN_ROAD_X_SLOPE_DOWN = 2445;
939 static const SpriteID SPR_BTGEN_ROAD_X_SLOPE_UP = 2446;
940 static const SpriteID SPR_BTGEN_ROAD_Y_SLOPE_DOWN = 2447;
941 static const SpriteID SPR_BTGEN_ROAD_Y_SLOPE_UP = 2448;
942 static const SpriteID SPR_BTGEN_ROAD_RAMP_X_UP = 2449;
943 static const SpriteID SPR_BTGEN_ROAD_RAMP_X_DOWN = 2450;
944 static const SpriteID SPR_BTGEN_ROAD_RAMP_Y_UP = 2451;
945 static const SpriteID SPR_BTGEN_ROAD_RAMP_Y_DOWN = 2452;
946 static const SpriteID SPR_BTGEN_MONO_X_SLOPE_DOWN = 4326;
947 static const SpriteID SPR_BTGEN_MONO_X_SLOPE_UP = 4327;
948 static const SpriteID SPR_BTGEN_MONO_Y_SLOPE_DOWN = 4328;
949 static const SpriteID SPR_BTGEN_MONO_Y_SLOPE_UP = 4329;
950 static const SpriteID SPR_BTGEN_MONO_RAMP_X_UP = 4330;
951 static const SpriteID SPR_BTGEN_MONO_RAMP_X_DOWN = 4331;
952 static const SpriteID SPR_BTGEN_MONO_RAMP_Y_UP = 4332;
953 static const SpriteID SPR_BTGEN_MONO_RAMP_Y_DOWN = 4333;
954 static const SpriteID SPR_BTGEN_MGLV_X_SLOPE_DOWN = 4366;
955 static const SpriteID SPR_BTGEN_MGLV_X_SLOPE_UP = 4367;
956 static const SpriteID SPR_BTGEN_MGLV_Y_SLOPE_DOWN = 4368;
957 static const SpriteID SPR_BTGEN_MGLV_Y_SLOPE_UP = 4369;
958 static const SpriteID SPR_BTGEN_MGLV_RAMP_X_UP = 4370;
959 static const SpriteID SPR_BTGEN_MGLV_RAMP_X_DOWN = 4371;
960 static const SpriteID SPR_BTGEN_MGLV_RAMP_Y_UP = 4372;
961 static const SpriteID SPR_BTGEN_MGLV_RAMP_Y_DOWN = 4373;
962
963 /* Vehicle view sprites */
964 static const SpriteID SPR_CENTRE_VIEW_VEHICLE = 683;
965 static const SpriteID SPR_SEND_TRAIN_TODEPOT = 685;
966 static const SpriteID SPR_SEND_ROADVEH_TODEPOT = 686;
967 static const SpriteID SPR_SEND_AIRCRAFT_TODEPOT = 687;
968 static const SpriteID SPR_SEND_SHIP_TODEPOT = 688;
969
970 static const SpriteID SPR_IGNORE_SIGNALS = 689;
971 static const SpriteID SPR_SHOW_ORDERS = 690;
972 static const SpriteID SPR_SHOW_VEHICLE_DETAILS = 691;
973 static const SpriteID SPR_REFIT_VEHICLE = 692;
974 static const SpriteID SPR_FORCE_VEHICLE_TURN = 715;
975
976 /* Vehicle sprite-flags (red/green) */
977 static const SpriteID SPR_FLAG_VEH_STOPPED = 3090;
978 static const SpriteID SPR_FLAG_VEH_RUNNING = 3091;
979
980 static const SpriteID SPR_VEH_BUS_SW_VIEW = 3097;
981 static const SpriteID SPR_VEH_BUS_SIDE_VIEW = 3098;
982
983 /* Rotor sprite numbers */
984 static const SpriteID SPR_ROTOR_STOPPED = 3901;
985 static const SpriteID SPR_ROTOR_MOVING_1 = 3902;
986 static const SpriteID SPR_ROTOR_MOVING_3 = 3904;
987
988 /* Town/house sprites */
989 static const SpriteID SPR_LIFT = 1443;
990
991 /* used in town_land.h
992 * CNST1..3 = Those are the different stages of construction
993 * The last 2 hexas correspond to the type of building it represent, if any */
994 static const SpriteID SPR_CNST1_TALLOFFICE_00 = 1421;
995 static const SpriteID SPR_CNST2_TALLOFFICE_00 = 1422;
996 static const SpriteID SPR_CNST3_TALLOFFICE_00 = 1423;
997 static const SpriteID SPR_GROUND_TALLOFFICE_00 = 1424;
998 static const SpriteID SPR_BUILD_TALLOFFICE_00 = 1425; // temperate
999 static const SpriteID SPR_CNST1_OFFICE_01 = 1426;
1000 static const SpriteID SPR_CNST2_OFFICE_01 = 1427;
1001 static const SpriteID SPR_BUILD_OFFICE_01 = 1428; // temperate
1002 static const SpriteID SPR_GROUND_OFFICE_01 = 1429;
1003 static const SpriteID SPR_CNST1_SMLBLCKFLATS_02 = 1430; // Small Block of Flats
1004 static const SpriteID SPR_CNST2_SMLBLCKFLATS_02 = 1431;
1005 static const SpriteID SPR_BUILD_SMLBLCKFLATS_02 = 1432; // temperate
1006 static const SpriteID SPR_GROUND_SMLBLCKFLATS_02 = 1433;
1007 static const SpriteID SPR_CNST1_TEMPCHURCH = 1434;
1008 static const SpriteID SPR_CNST2_TEMPCHURCH = 1435;
1009 static const SpriteID SPR_BUILD_TEMPCHURCH = 1436;
1010 static const SpriteID SPR_GROUND_TEMPCHURCH = 1437;
1011 static const SpriteID SPR_CNST1_LARGEOFFICE_04 = 1440;
1012 static const SpriteID SPR_CNST2_LARGEOFFICE_04 = 1441;
1013 static const SpriteID SPR_BUILD_LARGEOFFICE_04 = 1442; // temperate, sub-arctic, subtropical
1014 static const SpriteID SPR_BUILD_LARGEOFFICE_04_SNOW = 4569; // same, with snow
1015 /* These are in fact two houses for the same houseID. so V1 and V2 */
1016 static const SpriteID SPR_CNST1_TOWNHOUSE_06_V1 = 1444;
1017 static const SpriteID SPR_CNST2_TOWNHOUSE_06_V1 = 1445;
1018 static const SpriteID SPR_BUILD_TOWNHOUSE_06_V1 = 1446; // 1st variation
1019 static const SpriteID SPR_GRND_TOWNHOUSE_06_V1 = 1447;
1020 static const SpriteID SPR_GRND_STADIUM_N = 1479; // stadium ground at north
1021 static const SpriteID SPR_GRND_STADIUM_E = 1480; // stadium ground at east
1022 static const SpriteID SPR_GRND_STADIUM_W = 1481; // stadium ground at west
1023 static const SpriteID SPR_GRND_STADIUM_S = 1482; // stadium ground at south
1024 static const SpriteID SPR_CNST1_TOWNHOUSE_06_V2 = 1501; // used as ground, but is stage1
1025 static const SpriteID SPR_CNST1_TOWNHOUSE_06_V2_P = 1502; // pipes extensions for previous
1026 static const SpriteID SPR_CNST2_TOWNHOUSE_06_V2_G = 1503; // Ground of cnst stage 2
1027 static const SpriteID SPR_CNST2_TOWNHOUSE_06_V2 = 1504; // real cnst stage 2
1028 static const SpriteID SPR_GRND_TOWNHOUSE_06_V2 = 1505;
1029 static const SpriteID SPR_BUILD_TOWNHOUSE_06_V2 = 1506; // 2nd variation
1030 static const SpriteID SPR_CNST1_HOTEL_07_NW = 1448;
1031 static const SpriteID SPR_CNST2_HOTEL_07_NW = 1449;
1032 static const SpriteID SPR_BUILD_HOTEL_07_NW = 1450;
1033 static const SpriteID SPR_CNST1_HOTEL_07_SE = 1451;
1034 static const SpriteID SPR_CNST2_HOTEL_07_SE = 1452;
1035 static const SpriteID SPR_BUILD_HOTEL_07_SE = 1453;
1036 static const SpriteID SPR_STATUE_HORSERIDER_09 = 1454;
1037 static const SpriteID SPR_FOUNTAIN_0A = 1455;
1038 static const SpriteID SPR_PARKSTATUE_0B = 1456;
1039 static const SpriteID SPR_PARKALLEY_0C = 1457;
1040 static const SpriteID SPR_CNST1_OFFICE_0D = 1458;
1041 static const SpriteID SPR_CNST2_OFFICE_0D = 1459;
1042 static const SpriteID SPR_BUILD_OFFICE_0D = 1460;
1043 static const SpriteID SPR_CNST1_SHOPOFFICE_0E = 1461;
1044 static const SpriteID SPR_CNST2_SHOPOFFICE_0E = 1462;
1045 static const SpriteID SPR_BUILD_SHOPOFFICE_0E = 1463;
1046 static const SpriteID SPR_CNST1_SHOPOFFICE_0F = 1464;
1047 static const SpriteID SPR_CNST2_SHOPOFFICE_0F = 1465;
1048 static const SpriteID SPR_BUILD_SHOPOFFICE_0F = 1466;
1049 static const SpriteID SPR_GRND_HOUSE_TOY1 = 4675;
1050 static const SpriteID SPR_GRND_HOUSE_TOY2 = 4676;
1051
1052 /* Easter egg/disaster sprites */
1053 static const SpriteID SPR_BLIMP = 3905; // Zeppelin
1054 static const SpriteID SPR_BLIMP_CRASHING = 3906;
1055 static const SpriteID SPR_BLIMP_CRASHED = 3907;
1056 static const SpriteID SPR_UFO_SMALL_SCOUT = 3908; // XCOM - UFO Defense
1057 static const SpriteID SPR_UFO_SMALL_SCOUT_DARKER = 3909;
1058 static const SpriteID SPR_SUB_SMALL_NE = 3910; // Silent Service
1059 static const SpriteID SPR_SUB_SMALL_SE = 3911;
1060 static const SpriteID SPR_SUB_SMALL_SW = 3912;
1061 static const SpriteID SPR_SUB_SMALL_NW = 3913;
1062 static const SpriteID SPR_SUB_LARGE_NE = 3914;
1063 static const SpriteID SPR_SUB_LARGE_SE = 3915;
1064 static const SpriteID SPR_SUB_LARGE_SW = 3916;
1065 static const SpriteID SPR_SUB_LARGE_NW = 3917;
1066 static const SpriteID SPR_F_15 = 3918; // F-15 Strike Eagle
1067 static const SpriteID SPR_F_15_FIRING = 3919;
1068 static const SpriteID SPR_UFO_HARVESTER = 3920; // XCOM - UFO Defense
1069 static const SpriteID SPR_XCOM_SKYRANGER = 3921;
1070 static const SpriteID SPR_AH_64A = 3922; // Gunship
1071 static const SpriteID SPR_AH_64A_FIRING = 3923;
1072
1073 /* main_gui.cpp */
1074 static const SpriteID SPR_IMG_TERRAFORM_UP = 694;
1075 static const SpriteID SPR_IMG_TERRAFORM_DOWN = 695;
1076 static const SpriteID SPR_IMG_DYNAMITE = 703;
1077 static const SpriteID SPR_IMG_ROCKS = 4084;
1078 static const SpriteID SPR_IMG_DESERT = 4085;
1079 static const SpriteID SPR_IMG_TRANSMITTER = 4086;
1080 static const SpriteID SPR_IMG_LEVEL_LAND = SPR_OPENTTD_BASE + 91;
1081 static const SpriteID SPR_IMG_BUILD_CANAL = SPR_OPENTTD_BASE + 88;
1082 static const SpriteID SPR_IMG_BUILD_RIVER = SPR_OPENTTD_BASE + 136;
1083 static const SpriteID SPR_IMG_BUILD_LOCK = SPR_CANALS_BASE + 64;
1084 static const SpriteID SPR_IMG_PAUSE = 726;
1085 static const SpriteID SPR_IMG_FASTFORWARD = SPR_OPENTTD_BASE + 90;
1086 static const SpriteID SPR_IMG_SETTINGS = 751;
1087 static const SpriteID SPR_IMG_SAVE = 724;
1088 static const SpriteID SPR_IMG_SMALLMAP = 708;
1089 static const SpriteID SPR_IMG_TOWN = 4077;
1090 static const SpriteID SPR_IMG_SUBSIDIES = 679;
1091 static const SpriteID SPR_IMG_COMPANY_LIST = 1299;
1092 static const SpriteID SPR_IMG_COMPANY_FINANCE = 737;
1093 static const SpriteID SPR_IMG_COMPANY_GENERAL = 743;
1094 static const SpriteID SPR_IMG_GRAPHS = 745;
1095 static const SpriteID SPR_IMG_COMPANY_LEAGUE = 684;
1096 static const SpriteID SPR_IMG_SHOW_COUNTOURS = 738;
1097 static const SpriteID SPR_IMG_SHOW_VEHICLES = 739;
1098 static const SpriteID SPR_IMG_SHOW_ROUTES = 740;
1099 static const SpriteID SPR_IMG_INDUSTRY = 741;
1100 static const SpriteID SPR_IMG_PLANTTREES = 742;
1101 static const SpriteID SPR_IMG_TRAINLIST = 731;
1102 static const SpriteID SPR_IMG_TRUCKLIST = 732;
1103 static const SpriteID SPR_IMG_SHIPLIST = 733;
1104 static const SpriteID SPR_IMG_AIRPLANESLIST = 734;
1105 static const SpriteID SPR_IMG_ZOOMIN = 735;
1106 static const SpriteID SPR_IMG_ZOOMOUT = 736;
1107 static const SpriteID SPR_IMG_BUILDRAIL = 727;
1108 static const SpriteID SPR_IMG_BUILDROAD = 728;
1109 static const SpriteID SPR_IMG_BUILDTRAMS = SPR_OPENTTD_BASE + 179;
1110 static const SpriteID SPR_IMG_BUILDWATER = 729;
1111 static const SpriteID SPR_IMG_BUILDAIR = 730;
1112 static const SpriteID SPR_IMG_LANDSCAPING = 4083;
1113 static const SpriteID SPR_IMG_MUSIC = 713;
1114 static const SpriteID SPR_IMG_MESSAGES = 680;
1115 static const SpriteID SPR_IMG_QUERY = 723;
1116 static const SpriteID SPR_IMG_SIGN = 4082;
1117 static const SpriteID SPR_IMG_BUY_LAND = 4791;
1118 static const SpriteID SPR_IMG_STORY_BOOK = SPR_OPENTTD_BASE + 169;
1119
1120 /* OpenTTD in gamescreen */
1121 static const SpriteID SPR_OTTD_O = 4842;
1122 static const SpriteID SPR_OTTD_P = 4841;
1123 static const SpriteID SPR_OTTD_E = SPR_OPENTTD_BASE + 12;
1124 static const SpriteID SPR_OTTD_D = SPR_OPENTTD_BASE + 13;
1125 static const SpriteID SPR_OTTD_N = 4839;
1126 static const SpriteID SPR_OTTD_T = 4836;
1127 /* Letters not used: R,A,S,Y,C (4837, 4838, 4840, 4843, 4844) */
1128
1129 static const SpriteID SPR_HIGHSCORE_CHART_BEGIN = 4804;
1130 static const SpriteID SPR_TYCOON_IMG1_BEGIN = 4814;
1131 static const SpriteID SPR_TYCOON_IMG2_BEGIN = 4824;
1132
1133 /* Industry sprites */
1134 static const SpriteID SPR_IT_SUGAR_MINE_SIEVE = 4775;
1135 static const SpriteID SPR_IT_SUGAR_MINE_CLOUDS = 4784;
1136 static const SpriteID SPR_IT_SUGAR_MINE_PILE = 4780;
1137 static const SpriteID SPR_IT_TOFFEE_QUARRY_TOFFEE = 4766;
1138 static const SpriteID SPR_IT_TOFFEE_QUARRY_SHOVEL = 4767;
1139 static const SpriteID SPR_IT_BUBBLE_GENERATOR_SPRING = 4746;
1140 static const SpriteID SPR_IT_BUBBLE_GENERATOR_BUBBLE = 4747;
1141 static const SpriteID SPR_IT_TOY_FACTORY_STAMP_HOLDER = 4717;
1142 static const SpriteID SPR_IT_TOY_FACTORY_STAMP = 4718;
1143 static const SpriteID SPR_IT_TOY_FACTORY_CLAY = 4719;
1144 static const SpriteID SPR_IT_TOY_FACTORY_ROBOT = 4720;
1145 static const SpriteID SPR_IT_POWER_PLANT_TRANSFORMERS = 2054;
1146
1147 /* small icons of cargo available in station waiting*/
1148 static const SpriteID SPR_CARGO_PASSENGERS = 4297;
1149 static const SpriteID SPR_CARGO_COAL = 4298;
1150 static const SpriteID SPR_CARGO_MAIL = 4299;
1151 static const SpriteID SPR_CARGO_OIL = 4300;
1152 static const SpriteID SPR_CARGO_LIVESTOCK = 4301;
1153 static const SpriteID SPR_CARGO_GOODS = 4302;
1154 static const SpriteID SPR_CARGO_GRAIN = 4303; // shared sprite with SPR_CARGO_WHEAT, SPR_CARGO_MAIZE
1155 static const SpriteID SPR_CARGO_WHEAT = 4303; // shared sprite with SPR_CARGO_GRAIN, SPR_CARGO_MAIZE
1156 static const SpriteID SPR_CARGO_MAIZE = 4303; // shared sprite with SPR_CARGO_GRAIN, SPR_CARGO_WHEAT
1157 static const SpriteID SPR_CARGO_WOOD = 4304;
1158 static const SpriteID SPR_CARGO_IRON_ORE = 4305;
1159 static const SpriteID SPR_CARGO_STEEL = 4306;
1160 static const SpriteID SPR_CARGO_VALUABLES = 4307; // shared between temperate and arctic ( SPR_CARGO_GOLD )
1161 static const SpriteID SPR_CARGO_GOLD = 4307; // shared between temperate and arctic ( SPR_CARGO_VALUABLES )
1162 static const SpriteID SPR_CARGO_FRUIT = 4308;
1163 static const SpriteID SPR_CARGO_COPPER_ORE = 4309;
1164 static const SpriteID SPR_CARGO_WATER = 4310; // shared between desert and toyland ( SPR_CARGO_COLA )
1165 static const SpriteID SPR_CARGO_COLA = 4310; // shared between desert and toyland ( SPR_CARGO_WATER )
1166 static const SpriteID SPR_CARGO_DIAMONDS = 4311;
1167 static const SpriteID SPR_CARGO_FOOD = 4312;
1168 static const SpriteID SPR_CARGO_PAPER = 4313;
1169 static const SpriteID SPR_CARGO_RUBBER = 4314;
1170 static const SpriteID SPR_CARGO_SWEETS = 4315;
1171 static const SpriteID SPR_CARGO_SUGAR = 4316;
1172 static const SpriteID SPR_CARGO_TOYS = 4317;
1173 static const SpriteID SPR_CARGO_CANDYFLOSS = 4318;
1174 static const SpriteID SPR_CARGO_FIZZY_DRINKS = 4319;
1175 static const SpriteID SPR_CARGO_TOFFEE = 4320;
1176 static const SpriteID SPR_CARGO_BUBBLES = 4321;
1177 static const SpriteID SPR_CARGO_PLASTIC = 4322;
1178 static const SpriteID SPR_CARGO_BATTERIES = 4323;
1179 static const SpriteID SPR_CARGO_NOTHING = SPR_ASCII_SPACE; // Placeholder for void cargo slots.
1180
1181 /* Effect vehicles */
1182 static const SpriteID SPR_BULLDOZER_NE = 1416;
1183 static const SpriteID SPR_BULLDOZER_SE = 1417;
1184 static const SpriteID SPR_BULLDOZER_SW = 1418;
1185 static const SpriteID SPR_BULLDOZER_NW = 1419;
1186
1187 static const SpriteID SPR_SMOKE_0 = 2040;
1188 static const SpriteID SPR_SMOKE_1 = 2041;
1189 static const SpriteID SPR_SMOKE_2 = 2042;
1190 static const SpriteID SPR_SMOKE_3 = 2043;
1191 static const SpriteID SPR_SMOKE_4 = 2044;
1192
1193 static const SpriteID SPR_DIESEL_SMOKE_0 = 3073;
1194 static const SpriteID SPR_DIESEL_SMOKE_1 = 3074;
1195 static const SpriteID SPR_DIESEL_SMOKE_2 = 3075;
1196 static const SpriteID SPR_DIESEL_SMOKE_3 = 3076;
1197 static const SpriteID SPR_DIESEL_SMOKE_4 = 3077;
1198 static const SpriteID SPR_DIESEL_SMOKE_5 = 3078;
1199
1200 static const SpriteID SPR_STEAM_SMOKE_0 = 3079;
1201 static const SpriteID SPR_STEAM_SMOKE_1 = 3080;
1202 static const SpriteID SPR_STEAM_SMOKE_2 = 3081;
1203 static const SpriteID SPR_STEAM_SMOKE_3 = 3082;
1204 static const SpriteID SPR_STEAM_SMOKE_4 = 3083;
1205
1206 static const SpriteID SPR_ELECTRIC_SPARK_0 = 3084;
1207 static const SpriteID SPR_ELECTRIC_SPARK_1 = 3085;
1208 static const SpriteID SPR_ELECTRIC_SPARK_2 = 3086;
1209 static const SpriteID SPR_ELECTRIC_SPARK_3 = 3087;
1210 static const SpriteID SPR_ELECTRIC_SPARK_4 = 3088;
1211 static const SpriteID SPR_ELECTRIC_SPARK_5 = 3089;
1212
1213 static const SpriteID SPR_CHIMNEY_SMOKE_0 = 3701;
1214 static const SpriteID SPR_CHIMNEY_SMOKE_1 = 3702;
1215 static const SpriteID SPR_CHIMNEY_SMOKE_2 = 3703;
1216 static const SpriteID SPR_CHIMNEY_SMOKE_3 = 3704;
1217 static const SpriteID SPR_CHIMNEY_SMOKE_4 = 3705;
1218 static const SpriteID SPR_CHIMNEY_SMOKE_5 = 3706;
1219 static const SpriteID SPR_CHIMNEY_SMOKE_6 = 3707;
1220 static const SpriteID SPR_CHIMNEY_SMOKE_7 = 3708;
1221
1222 static const SpriteID SPR_EXPLOSION_LARGE_0 = 3709;
1223 static const SpriteID SPR_EXPLOSION_LARGE_1 = 3710;
1224 static const SpriteID SPR_EXPLOSION_LARGE_2 = 3711;
1225 static const SpriteID SPR_EXPLOSION_LARGE_3 = 3712;
1226 static const SpriteID SPR_EXPLOSION_LARGE_4 = 3713;
1227 static const SpriteID SPR_EXPLOSION_LARGE_5 = 3714;
1228 static const SpriteID SPR_EXPLOSION_LARGE_6 = 3715;
1229 static const SpriteID SPR_EXPLOSION_LARGE_7 = 3716;
1230 static const SpriteID SPR_EXPLOSION_LARGE_8 = 3717;
1231 static const SpriteID SPR_EXPLOSION_LARGE_9 = 3718;
1232 static const SpriteID SPR_EXPLOSION_LARGE_A = 3719;
1233 static const SpriteID SPR_EXPLOSION_LARGE_B = 3720;
1234 static const SpriteID SPR_EXPLOSION_LARGE_C = 3721;
1235 static const SpriteID SPR_EXPLOSION_LARGE_D = 3722;
1236 static const SpriteID SPR_EXPLOSION_LARGE_E = 3723;
1237 static const SpriteID SPR_EXPLOSION_LARGE_F = 3724;
1238
1239 static const SpriteID SPR_EXPLOSION_SMALL_0 = 3725;
1240 static const SpriteID SPR_EXPLOSION_SMALL_1 = 3726;
1241 static const SpriteID SPR_EXPLOSION_SMALL_2 = 3727;
1242 static const SpriteID SPR_EXPLOSION_SMALL_3 = 3728;
1243 static const SpriteID SPR_EXPLOSION_SMALL_4 = 3729;
1244 static const SpriteID SPR_EXPLOSION_SMALL_5 = 3730;
1245 static const SpriteID SPR_EXPLOSION_SMALL_6 = 3731;
1246 static const SpriteID SPR_EXPLOSION_SMALL_7 = 3732;
1247 static const SpriteID SPR_EXPLOSION_SMALL_8 = 3733;
1248 static const SpriteID SPR_EXPLOSION_SMALL_9 = 3734;
1249 static const SpriteID SPR_EXPLOSION_SMALL_A = 3735;
1250 static const SpriteID SPR_EXPLOSION_SMALL_B = 3736;
1251
1252 static const SpriteID SPR_BREAKDOWN_SMOKE_0 = 3737;
1253 static const SpriteID SPR_BREAKDOWN_SMOKE_1 = 3738;
1254 static const SpriteID SPR_BREAKDOWN_SMOKE_2 = 3739;
1255 static const SpriteID SPR_BREAKDOWN_SMOKE_3 = 3740;
1256
1257 static const SpriteID SPR_BUBBLE_0 = 4748;
1258 static const SpriteID SPR_BUBBLE_1 = 4749;
1259 static const SpriteID SPR_BUBBLE_2 = 4750;
1260 static const SpriteID SPR_BUBBLE_GENERATE_0 = 4751;
1261 static const SpriteID SPR_BUBBLE_GENERATE_1 = 4752;
1262 static const SpriteID SPR_BUBBLE_GENERATE_2 = 4753;
1263 static const SpriteID SPR_BUBBLE_GENERATE_3 = 4754;
1264 static const SpriteID SPR_BUBBLE_BURST_0 = 4755;
1265 static const SpriteID SPR_BUBBLE_BURST_1 = 4756;
1266 static const SpriteID SPR_BUBBLE_BURST_2 = 4757;
1267 static const SpriteID SPR_BUBBLE_ABSORB_0 = 4758;
1268 static const SpriteID SPR_BUBBLE_ABSORB_1 = 4759;
1269 static const SpriteID SPR_BUBBLE_ABSORB_2 = 4760;
1270 static const SpriteID SPR_BUBBLE_ABSORB_3 = 4761;
1271 static const SpriteID SPR_BUBBLE_ABSORB_4 = 4762;
1272
1273 /* Electrified rail build menu */
1274 static const SpriteID SPR_BUILD_NS_ELRAIL = SPR_ELRAIL_BASE + 36;
1275 static const SpriteID SPR_BUILD_X_ELRAIL = SPR_ELRAIL_BASE + 37;
1276 static const SpriteID SPR_BUILD_EW_ELRAIL = SPR_ELRAIL_BASE + 38;
1277 static const SpriteID SPR_BUILD_Y_ELRAIL = SPR_ELRAIL_BASE + 39;
1278 static const SpriteID SPR_BUILD_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 44;
1279
1280 /* airport_gui.cpp */
1281 static const SpriteID SPR_IMG_AIRPORT = 744;
1282
1283 /* dock_gui.cpp */
1284 static const SpriteID SPR_IMG_SHIP_DEPOT = 748;
1285 static const SpriteID SPR_IMG_SHIP_DOCK = 746;
1286 static const SpriteID SPR_IMG_BUOY = 693;
1287 static const SpriteID SPR_IMG_AQUEDUCT = SPR_OPENTTD_BASE + 145;
1288
1289 /* music_gui.cpp */
1290 static const SpriteID SPR_IMG_SKIP_TO_PREV = 709;
1291 static const SpriteID SPR_IMG_SKIP_TO_NEXT = 710;
1292 static const SpriteID SPR_IMG_STOP_MUSIC = 711;
1293 static const SpriteID SPR_IMG_PLAY_MUSIC = 712;
1294
1295 /* road_gui.cpp */
1296 static const SpriteID SPR_IMG_ROAD_Y_DIR = 1309;
1297 static const SpriteID SPR_IMG_ROAD_X_DIR = 1310;
1298 static const SpriteID SPR_IMG_AUTOROAD = SPR_OPENTTD_BASE + 82;
1299 static const SpriteID SPR_IMG_ROAD_DEPOT = 1295;
1300 static const SpriteID SPR_IMG_BUS_STATION = 749;
1301 static const SpriteID SPR_IMG_TRUCK_BAY = 750;
1302 static const SpriteID SPR_IMG_BRIDGE = 2594;
1303 static const SpriteID SPR_IMG_ROAD_TUNNEL = 2429;
1304 static const SpriteID SPR_IMG_REMOVE = 714;
1305 static const SpriteID SPR_IMG_ROAD_ONE_WAY = SPR_OPENTTD_BASE + 134;
1306 static const SpriteID SPR_IMG_TRAMWAY_Y_DIR = SPR_TRAMWAY_BASE + 0;
1307 static const SpriteID SPR_IMG_TRAMWAY_X_DIR = SPR_TRAMWAY_BASE + 1;
1308 static const SpriteID SPR_IMG_AUTOTRAM = SPR_OPENTTD_BASE + 84;
1309
1310 /* rail_gui.cpp */
1311 static const SpriteID SPR_IMG_RAIL_NS = 1251;
1312 static const SpriteID SPR_IMG_RAIL_NE = 1252;
1313 static const SpriteID SPR_IMG_RAIL_EW = 1253;
1314 static const SpriteID SPR_IMG_RAIL_NW = 1254;
1315 static const SpriteID SPR_IMG_AUTORAIL = SPR_OPENTTD_BASE + 53;
1316 static const SpriteID SPR_IMG_AUTOELRAIL = SPR_OPENTTD_BASE + 57;
1317 static const SpriteID SPR_IMG_AUTOMONO = SPR_OPENTTD_BASE + 63;
1318 static const SpriteID SPR_IMG_AUTOMAGLEV = SPR_OPENTTD_BASE + 69;
1319
1320 static const SpriteID SPR_IMG_WAYPOINT = SPR_OPENTTD_BASE + 76;
1321
1322 static const SpriteID SPR_IMG_DEPOT_RAIL = 1294;
1323 static const SpriteID SPR_IMG_DEPOT_ELRAIL = SPR_OPENTTD_BASE + 61;
1324 static const SpriteID SPR_IMG_DEPOT_MONO = SPR_OPENTTD_BASE + 67;
1325 static const SpriteID SPR_IMG_DEPOT_MAGLEV = SPR_OPENTTD_BASE + 73;
1326
1327 static const SpriteID SPR_IMG_RAIL_STATION = 1298;
1328 static const SpriteID SPR_IMG_RAIL_SIGNALS = 1291;
1329
1330 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_NORM = 1287;
1331 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_ENTRY = SPR_SIGNALS_BASE + 12;
1332 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_EXIT = SPR_SIGNALS_BASE + 28;
1333 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_COMBO = SPR_SIGNALS_BASE + 44;
1334 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_PBS = SPR_SIGNALS_BASE + 124;
1335 static const SpriteID SPR_IMG_SIGNAL_ELECTRIC_PBS_OWAY = SPR_SIGNALS_BASE + 140;
1336 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_NORM = SPR_SIGNALS_BASE + 60;
1337 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_ENTRY = SPR_SIGNALS_BASE + 76;
1338 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_EXIT = SPR_SIGNALS_BASE + 92;
1339 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_COMBO = SPR_SIGNALS_BASE + 108;
1340 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_PBS = SPR_SIGNALS_BASE + 188;
1341 static const SpriteID SPR_IMG_SIGNAL_SEMAPHORE_PBS_OWAY= SPR_SIGNALS_BASE + 204;
1342 static const SpriteID SPR_IMG_SIGNAL_CONVERT = SPR_OPENTTD_BASE + 135;
1343
1344 static const SpriteID SPR_IMG_TUNNEL_RAIL = 2430;
1345 static const SpriteID SPR_IMG_TUNNEL_MONO = 2431;
1346 static const SpriteID SPR_IMG_TUNNEL_MAGLEV = 2432;
1347
1348 static const SpriteID SPR_IMG_CONVERT_RAIL = SPR_OPENTTD_BASE + 55;
1349 static const SpriteID SPR_IMG_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 59;
1350 static const SpriteID SPR_IMG_CONVERT_MONO = SPR_OPENTTD_BASE + 65;
1351 static const SpriteID SPR_IMG_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 71;
1352
1353 /* story_gui.cpp */
1354 static const SpriteID SPR_IMG_VIEW_LOCATION = SPR_OPENTTD_BASE + 170;
1355 static const SpriteID SPR_IMG_GOAL = SPR_OPENTTD_BASE + 171;
1356 static const SpriteID SPR_IMG_GOAL_COMPLETED = SPR_OPENTTD_BASE + 172;
1357 static const SpriteID SPR_IMG_GOAL_BROKEN_REF= SPR_OPENTTD_BASE + 173;
1358
1359 static const SpriteID SPR_IMG_CONVERT_ROAD = SPR_OPENTTD_BASE + 180;
1360 static const CursorID SPR_CURSOR_CONVERT_ROAD = SPR_OPENTTD_BASE + 181;
1361 static const SpriteID SPR_IMG_CONVERT_TRAM = SPR_OPENTTD_BASE + 182;
1362 static const CursorID SPR_CURSOR_CONVERT_TRAM = SPR_OPENTTD_BASE + 183;
1363
1364 /* intro_gui.cpp, genworld_gui.cpp */
1365 static const SpriteID SPR_SELECT_TEMPERATE = 4882;
1366 static const SpriteID SPR_SELECT_TEMPERATE_PUSHED = 4883;
1367 static const SpriteID SPR_SELECT_SUB_ARCTIC = 4884;
1368 static const SpriteID SPR_SELECT_SUB_ARCTIC_PUSHED = 4885;
1369 static const SpriteID SPR_SELECT_SUB_TROPICAL = 4886;
1370 static const SpriteID SPR_SELECT_SUB_TROPICAL_PUSHED = 4887;
1371 static const SpriteID SPR_SELECT_TOYLAND = 4888;
1372 static const SpriteID SPR_SELECT_TOYLAND_PUSHED = 4889;
1373
1376 /* Terraform
1377 * Cursors */
1378 static const CursorID SPR_CURSOR_MOUSE = 0;
1379 static const CursorID SPR_CURSOR_ZZZ = 1;
1380 static const CursorID SPR_CURSOR_BUOY = 702;
1381 static const CursorID SPR_CURSOR_QUERY = 719;
1382 static const CursorID SPR_CURSOR_HQ = 720;
1383 static const CursorID SPR_CURSOR_SHIP_DEPOT = 721;
1384 static const CursorID SPR_CURSOR_SIGN = 722;
1385
1386 static const CursorID SPR_CURSOR_TREE = 2010;
1387 static const CursorID SPR_CURSOR_BUY_LAND = 4792;
1388 static const CursorID SPR_CURSOR_LEVEL_LAND = SPR_OPENTTD_BASE + 92;
1389
1390 static const CursorID SPR_CURSOR_TOWN = 4080;
1391 static const CursorID SPR_CURSOR_INDUSTRY = 4081;
1392 static const CursorID SPR_CURSOR_ROCKY_AREA = 4087;
1393 static const CursorID SPR_CURSOR_DESERT = 4088;
1394 static const CursorID SPR_CURSOR_TRANSMITTER = 4089;
1395
1396 /* airport cursors */
1397 static const CursorID SPR_CURSOR_AIRPORT = 2724;
1398
1399 /* dock cursors */
1400 static const CursorID SPR_CURSOR_DOCK = 3668;
1401 static const CursorID SPR_CURSOR_CANAL = SPR_OPENTTD_BASE + 89;
1402 static const CursorID SPR_CURSOR_LOCK = SPR_OPENTTD_BASE + 87;
1403 static const CursorID SPR_CURSOR_RIVER = SPR_OPENTTD_BASE + 137;
1404 static const CursorID SPR_CURSOR_AQUEDUCT = SPR_OPENTTD_BASE + 146;
1405
1406 /* shared road & rail cursors */
1407 static const CursorID SPR_CURSOR_BRIDGE = 2593;
1408
1409 /* rail cursors */
1410 static const CursorID SPR_CURSOR_NS_TRACK = 1263;
1411 static const CursorID SPR_CURSOR_SWNE_TRACK = 1264;
1412 static const CursorID SPR_CURSOR_EW_TRACK = 1265;
1413 static const CursorID SPR_CURSOR_NWSE_TRACK = 1266;
1414
1415 static const CursorID SPR_CURSOR_NS_MONO = 1267;
1416 static const CursorID SPR_CURSOR_SWNE_MONO = 1268;
1417 static const CursorID SPR_CURSOR_EW_MONO = 1269;
1418 static const CursorID SPR_CURSOR_NWSE_MONO = 1270;
1419
1420 static const CursorID SPR_CURSOR_NS_MAGLEV = 1271;
1421 static const CursorID SPR_CURSOR_SWNE_MAGLEV = 1272;
1422 static const CursorID SPR_CURSOR_EW_MAGLEV = 1273;
1423 static const CursorID SPR_CURSOR_NWSE_MAGLEV = 1274;
1424
1425 static const CursorID SPR_CURSOR_NS_ELRAIL = SPR_ELRAIL_BASE + 40;
1426 static const CursorID SPR_CURSOR_SWNE_ELRAIL = SPR_ELRAIL_BASE + 41;
1427 static const CursorID SPR_CURSOR_EW_ELRAIL = SPR_ELRAIL_BASE + 42;
1428 static const CursorID SPR_CURSOR_NWSE_ELRAIL = SPR_ELRAIL_BASE + 43;
1429
1430 static const CursorID SPR_CURSOR_RAIL_STATION = 1300;
1431
1432 static const CursorID SPR_CURSOR_TUNNEL_RAIL = 2434;
1433 static const CursorID SPR_CURSOR_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 45;
1434 static const CursorID SPR_CURSOR_TUNNEL_MONO = 2435;
1435 static const CursorID SPR_CURSOR_TUNNEL_MAGLEV = 2436;
1436
1437 static const CursorID SPR_CURSOR_AUTORAIL = SPR_OPENTTD_BASE + 54;
1438 static const CursorID SPR_CURSOR_AUTOELRAIL = SPR_OPENTTD_BASE + 58;
1439 static const CursorID SPR_CURSOR_AUTOMONO = SPR_OPENTTD_BASE + 64;
1440 static const CursorID SPR_CURSOR_AUTOMAGLEV = SPR_OPENTTD_BASE + 70;
1441
1442 static const CursorID SPR_CURSOR_WAYPOINT = SPR_OPENTTD_BASE + 77;
1443
1444 static const CursorID SPR_CURSOR_RAIL_DEPOT = 1296;
1445 static const CursorID SPR_CURSOR_ELRAIL_DEPOT = SPR_OPENTTD_BASE + 62;
1446 static const CursorID SPR_CURSOR_MONO_DEPOT = SPR_OPENTTD_BASE + 68;
1447 static const CursorID SPR_CURSOR_MAGLEV_DEPOT = SPR_OPENTTD_BASE + 74;
1448
1449 static const CursorID SPR_CURSOR_CONVERT_RAIL = SPR_OPENTTD_BASE + 56;
1450 static const CursorID SPR_CURSOR_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 60;
1451 static const CursorID SPR_CURSOR_CONVERT_MONO = SPR_OPENTTD_BASE + 66;
1452 static const CursorID SPR_CURSOR_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 72;
1453
1454 /* road cursors */
1455 static const CursorID SPR_CURSOR_ROAD_NESW = 1311;
1456 static const CursorID SPR_CURSOR_ROAD_NWSE = 1312;
1457 static const CursorID SPR_CURSOR_AUTOROAD = SPR_OPENTTD_BASE + 83;
1458 static const CursorID SPR_CURSOR_TRAMWAY_NESW = SPR_TRAMWAY_BASE + 2;
1459 static const CursorID SPR_CURSOR_TRAMWAY_NWSE = SPR_TRAMWAY_BASE + 3;
1460 static const CursorID SPR_CURSOR_AUTOTRAM = SPR_OPENTTD_BASE + 85;
1461
1462 static const CursorID SPR_CURSOR_ROAD_DEPOT = 1297;
1463 static const CursorID SPR_CURSOR_BUS_STATION = 2725;
1464 static const CursorID SPR_CURSOR_TRUCK_STATION = 2726;
1465 static const CursorID SPR_CURSOR_ROAD_TUNNEL = 2433;
1466
1467 static const CursorID SPR_CURSOR_CLONE_TRAIN = SPR_OPENTTD_BASE + 110;
1468 static const CursorID SPR_CURSOR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 111;
1469 static const CursorID SPR_CURSOR_CLONE_SHIP = SPR_OPENTTD_BASE + 112;
1470 static const CursorID SPR_CURSOR_CLONE_AIRPLANE = SPR_OPENTTD_BASE + 113;
1471
1474 static const CursorID SPR_CURSOR_DEMOLISH_FIRST = 704;
1475 static const CursorID SPR_CURSOR_DEMOLISH_1 = 705;
1476 static const CursorID SPR_CURSOR_DEMOLISH_2 = 706;
1477 static const CursorID SPR_CURSOR_DEMOLISH_LAST = 707;
1478
1479 static const CursorID SPR_CURSOR_LOWERLAND_FIRST = 699;
1480 static const CursorID SPR_CURSOR_LOWERLAND_1 = 700;
1481 static const CursorID SPR_CURSOR_LOWERLAND_LAST = 701;
1482
1483 static const CursorID SPR_CURSOR_RAISELAND_FIRST = 696;
1484 static const CursorID SPR_CURSOR_RAISELAND_1 = 697;
1485 static const CursorID SPR_CURSOR_RAISELAND_LAST = 698;
1486
1487 static const CursorID SPR_CURSOR_PICKSTATION_FIRST = 716;
1488 static const CursorID SPR_CURSOR_PICKSTATION_1 = 717;
1489 static const CursorID SPR_CURSOR_PICKSTATION_LAST = 718;
1490
1491 static const CursorID SPR_CURSOR_BUILDSIGNALS_FIRST = 1292;
1492 static const CursorID SPR_CURSOR_BUILDSIGNALS_LAST = 1293;
1493
1495 static const CursorID ANIMCURSOR_FLAG = 1U << 31;
1496 static const CursorID ANIMCURSOR_DEMOLISH = ANIMCURSOR_FLAG | 0;
1497 static const CursorID ANIMCURSOR_LOWERLAND = ANIMCURSOR_FLAG | 1;
1498 static const CursorID ANIMCURSOR_RAISELAND = ANIMCURSOR_FLAG | 2;
1499 static const CursorID ANIMCURSOR_PICKSTATION = ANIMCURSOR_FLAG | 3;
1500 static const CursorID ANIMCURSOR_BUILDSIGNALS = ANIMCURSOR_FLAG | 4;
1501
1512 enum SpriteSetup {
1513 /* These bits are applied to sprite ID */
1514 TRANSPARENT_BIT = 31,
1515 RECOLOUR_BIT = 30,
1516 CUSTOM_BIT = 29,
1517 OPAQUE_BIT = 28,
1518
1519 /* This bit is applied to palette ID */
1520 PALETTE_TEXT_RECOLOUR = 31,
1521
1522 PALETTE_WIDTH = 24,
1523 SPRITE_WIDTH = 24,
1524 };
1525
1534 enum Modifiers {
1535 SPRITE_MODIFIER_CUSTOM_SPRITE = CUSTOM_BIT,
1536 SPRITE_MODIFIER_OPAQUE = OPAQUE_BIT,
1537 PALETTE_MODIFIER_TRANSPARENT = TRANSPARENT_BIT,
1538 PALETTE_MODIFIER_COLOUR = RECOLOUR_BIT,
1539 };
1540
1546 enum SpriteMasks {
1547 MAX_SPRITES = 1U << SPRITE_WIDTH,
1548 SPRITE_MASK = MAX_SPRITES - 1,
1549
1550 MAX_PALETTES = 1U << PALETTE_WIDTH,
1551 PALETTE_MASK = MAX_PALETTES - 1,
1552 };
1553
1554 static_assert( (1U << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
1555 static_assert( (1U << RECOLOUR_BIT & SPRITE_MASK) == 0 );
1556 static_assert( TRANSPARENT_BIT != RECOLOUR_BIT );
1557 static_assert( (1U << TRANSPARENT_BIT & PALETTE_MASK) == 0 );
1558 static_assert( (1U << RECOLOUR_BIT & PALETTE_MASK) == 0 );
1559
1560
1561 static const PaletteID PAL_NONE = 0;
1562 static const PaletteID PALETTE_TILE_RED_PULSATING = 771;
1563 static const PaletteID PALETTE_SEL_TILE_RED = 772;
1564 static const PaletteID PALETTE_SEL_TILE_BLUE = 773;
1565
1566 /* Company re-colour sprites */
1567 static const PaletteID PALETTE_RECOLOUR_START = 775;
1568 static const PaletteID PALETTE_TO_DARK_BLUE = 775;
1569 static const PaletteID PALETTE_TO_PALE_GREEN = 776;
1570 static const PaletteID PALETTE_TO_PINK = 777;
1571 static const PaletteID PALETTE_TO_YELLOW = 778;
1572 static const PaletteID PALETTE_TO_RED = 779;
1573 static const PaletteID PALETTE_TO_LIGHT_BLUE = 780;
1574 static const PaletteID PALETTE_TO_GREEN = 781;
1575 static const PaletteID PALETTE_TO_DARK_GREEN = 782;
1576 static const PaletteID PALETTE_TO_BLUE = 783;
1577 static const PaletteID PALETTE_TO_CREAM = 784;
1578 /* maybe don't use as company colour because it doesn't display in the graphs? */
1579 static const PaletteID PALETTE_TO_MAUVE = 785;
1580 static const PaletteID PALETTE_TO_PURPLE = 786;
1581 static const PaletteID PALETTE_TO_ORANGE = 787;
1582 static const PaletteID PALETTE_TO_BROWN = 788;
1583 static const PaletteID PALETTE_TO_GREY = 789;
1584 static const PaletteID PALETTE_TO_WHITE = 790;
1585
1586 static const PaletteID PALETTE_TO_BARE_LAND = 791;
1587 /* recolour sprites 792-794 are not used */
1588 static const PaletteID PALETTE_TO_STRUCT_BLUE = 795;
1589 static const PaletteID PALETTE_TO_STRUCT_BROWN = 796;
1590 static const PaletteID PALETTE_TO_STRUCT_WHITE = 797;
1591 static const PaletteID PALETTE_TO_STRUCT_RED = 798;
1592 static const PaletteID PALETTE_TO_STRUCT_GREEN = 799;
1593 static const PaletteID PALETTE_TO_STRUCT_CONCRETE = 800;
1594 static const PaletteID PALETTE_TO_STRUCT_YELLOW = 801;
1595 static const PaletteID PALETTE_TO_TRANSPARENT = 802;
1596
1597 static const PaletteID PALETTE_NEWSPAPER = 803;
1598 static const PaletteID PALETTE_CRASH = 804;
1599
1600 /* Two recolourings only used by the church */
1601 static const PaletteID PALETTE_CHURCH_RED = 1438;
1602 static const PaletteID PALETTE_CHURCH_CREAM = 1439;
1603
1604 static const PaletteID PALETTE_ALL_BLACK = SPR_PALETTE_BASE;
1605
1606 #endif /* SPRITES_H */
SPRITE_MASK
@ SPRITE_MASK
The mask to for the main sprite.
Definition: sprites.h:1548
PALETTE_CHURCH_CREAM
static const PaletteID PALETTE_CHURCH_CREAM
Recolour sprite for white churches.
Definition: sprites.h:1602
PALETTE_SEL_TILE_RED
static const PaletteID PALETTE_SEL_TILE_RED
makes a square red. is used when removing rails or other stuff
Definition: sprites.h:1563
PALETTE_MASK
@ PALETTE_MASK
The mask for the auxiliary sprite (the one that takes care of recolouring)
Definition: sprites.h:1551
PALETTE_TEXT_RECOLOUR
@ PALETTE_TEXT_RECOLOUR
Set if palette is actually a magic text recolour.
Definition: sprites.h:1520
SPR_SHORE_BASE
static const SpriteID SPR_SHORE_BASE
shore tiles - action 05-0D
Definition: sprites.h:224
PALETTE_TO_STRUCT_WHITE
static const PaletteID PALETTE_TO_STRUCT_WHITE
sets bridge or structure to white (e.g. some town houses)
Definition: sprites.h:1590
SPRITE_WIDTH
@ SPRITE_WIDTH
number of bits for the sprite number
Definition: sprites.h:1523
PALETTE_TILE_RED_PULSATING
static const PaletteID PALETTE_TILE_RED_PULSATING
pulsating red tile drawn if you try to build a wrong tunnel or raise/lower land where it is not possi...
Definition: sprites.h:1562
ANIMCURSOR_RAISELAND
static const CursorID ANIMCURSOR_RAISELAND
696 - 698 - raise land tool
Definition: sprites.h:1498
PALETTE_MODIFIER_COLOUR
@ PALETTE_MODIFIER_COLOUR
this bit is set when a recolouring process is in action
Definition: sprites.h:1538
PALETTE_TO_STRUCT_GREEN
static const PaletteID PALETTE_TO_STRUCT_GREEN
sets bridge or structure to green (e.g. bridge)
Definition: sprites.h:1592
RECOLOUR_BIT
@ RECOLOUR_BIT
toggles recolouring in the sprite
Definition: sprites.h:1515
ANIMCURSOR_BUILDSIGNALS
static const CursorID ANIMCURSOR_BUILDSIGNALS
1292 - 1293 - build signal
Definition: sprites.h:1500
PALETTE_CHURCH_RED
static const PaletteID PALETTE_CHURCH_RED
Recolour sprite for reddish churches.
Definition: sprites.h:1601
PALETTE_TO_TRANSPARENT
static const PaletteID PALETTE_TO_TRANSPARENT
This sets the sprite to transparent.
Definition: sprites.h:1595
SPR_CURSOR_DEMOLISH_FIRST
static const CursorID SPR_CURSOR_DEMOLISH_FIRST
Animation macro in table/animcursors.h (_animcursors[])
Definition: sprites.h:1474
SPR_HALFTILE_FOUNDATION_BASE
static const SpriteID SPR_HALFTILE_FOUNDATION_BASE
Halftile foundations.
Definition: sprites.h:210
ANIMCURSOR_DEMOLISH
static const CursorID ANIMCURSOR_DEMOLISH
704 - 707 - demolish dynamite
Definition: sprites.h:1496
PALETTE_TO_STRUCT_BROWN
static const PaletteID PALETTE_TO_STRUCT_BROWN
sets bridge or structure to brown (e.g. cantilever bridge)
Definition: sprites.h:1589
SPR_AQUEDUCT_BASE
static const SpriteID SPR_AQUEDUCT_BASE
Sprites for the Aqueduct.
Definition: sprites.h:186
PALETTE_TO_STRUCT_BLUE
static const PaletteID PALETTE_TO_STRUCT_BLUE
sets bridge or structure to blue (e.g. some town houses)
Definition: sprites.h:1588
SpriteID
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition: gfx_type.h:17
ANIMCURSOR_PICKSTATION
static const CursorID ANIMCURSOR_PICKSTATION
716 - 718 - goto-order icon
Definition: sprites.h:1499
CursorID
uint32 CursorID
The number of the cursor (sprite)
Definition: gfx_type.h:19
MAX_SPRITES
@ MAX_SPRITES
Maximum number of sprites that can be loaded at a given time.
Definition: sprites.h:1547
PALETTE_WIDTH
@ PALETTE_WIDTH
number of bits of the sprite containing the recolour palette
Definition: sprites.h:1522
ANIMCURSOR_FLAG
static const CursorID ANIMCURSOR_FLAG
Flag for saying a cursor sprite is an animated cursor.
Definition: sprites.h:1495
PALETTE_TO_STRUCT_YELLOW
static const PaletteID PALETTE_TO_STRUCT_YELLOW
Sets the bridge colour to yellow (suspension and tubular)
Definition: sprites.h:1594
SPRITE_MODIFIER_OPAQUE
@ SPRITE_MODIFIER_OPAQUE
Set when a sprite must not ever be displayed transparently.
Definition: sprites.h:1536
SPR_CLONE_TRAIN
static const SpriteID SPR_CLONE_TRAIN
Clone vehicles stuff.
Definition: sprites.h:100
PALETTE_NEWSPAPER
static const PaletteID PALETTE_NEWSPAPER
Recolour sprite for newspaper-greying.
Definition: sprites.h:1597
SPRITE_MODIFIER_CUSTOM_SPRITE
@ SPRITE_MODIFIER_CUSTOM_SPRITE
Set when a sprite originates from an Action 1.
Definition: sprites.h:1535
SPR_RAILTYPE_TUNNEL_BASE
static const SpriteID SPR_RAILTYPE_TUNNEL_BASE
Tunnel sprites with grass only for custom railtype tunnel.
Definition: sprites.h:299
PALETTE_MODIFIER_TRANSPARENT
@ PALETTE_MODIFIER_TRANSPARENT
when a sprite is to be displayed transparently, this bit needs to be set.
Definition: sprites.h:1537
PALETTE_RECOLOUR_START
static const PaletteID PALETTE_RECOLOUR_START
First recolour sprite for company colours.
Definition: sprites.h:1567
Modifiers
Modifiers
these masks change the colours of the palette for a sprite.
Definition: sprites.h:1534
PALETTE_CRASH
static const PaletteID PALETTE_CRASH
Recolour sprite greying of crashed vehicles.
Definition: sprites.h:1598
PALETTE_TO_BARE_LAND
static const PaletteID PALETTE_TO_BARE_LAND
sets colour to bare land stuff for rail, road and crossings
Definition: sprites.h:1586
PALETTE_SEL_TILE_BLUE
static const PaletteID PALETTE_SEL_TILE_BLUE
This draws a blueish square (catchment areas for example)
Definition: sprites.h:1564
PaletteID
uint32 PaletteID
The number of the palette.
Definition: gfx_type.h:18
SPR_AIRPORT_PREVIEW_BASE
static const SpriteID SPR_AIRPORT_PREVIEW_BASE
Airport preview sprites.
Definition: sprites.h:248
SPR_OPENTTD_BASE
static const SpriteID SPR_OPENTTD_BASE
Extra graphic spritenumbers.
Definition: sprites.h:56
SpriteSetup
SpriteSetup
Bitmask setup.
Definition: sprites.h:1512
TRANSPARENT_BIT
@ TRANSPARENT_BIT
toggles transparency in the sprite
Definition: sprites.h:1514
SpriteMasks
SpriteMasks
Masks needed for sprite operations.
Definition: sprites.h:1546
SPR_CURSOR_MOUSE
static const CursorID SPR_CURSOR_MOUSE
Cursor sprite numbers.
Definition: sprites.h:1378
PALETTE_TO_STRUCT_RED
static const PaletteID PALETTE_TO_STRUCT_RED
sets bridge or structure to red (e.g. concrete and cantilever bridge)
Definition: sprites.h:1591
SPR_TRACKS_FOR_SLOPES_BASE
static const SpriteID SPR_TRACKS_FOR_SLOPES_BASE
Sprites for 'highlighting' tracks on sloped land.
Definition: sprites.h:198
SPR_ONEWAY_BASE
static const SpriteID SPR_ONEWAY_BASE
One way road sprites.
Definition: sprites.h:293
PALETTE_ALL_BLACK
static const PaletteID PALETTE_ALL_BLACK
Exchange any color by black, needed for painting fictive tiles outside map.
Definition: sprites.h:1604
PALETTE_TO_STRUCT_CONCRETE
static const PaletteID PALETTE_TO_STRUCT_CONCRETE
Sets the suspension bridge to concrete, also other structures use it.
Definition: sprites.h:1593
SPR_TRAMWAY_BASE
static const SpriteID SPR_TRAMWAY_BASE
Tramway sprites.
Definition: sprites.h:272
ANIMCURSOR_LOWERLAND
static const CursorID ANIMCURSOR_LOWERLAND
699 - 701 - lower land tool
Definition: sprites.h:1497