Files
@ r21640:6ebf6839752c
Branch filter:
Location: cpp/openttd-patchpack/source/src/table/airport_defaults.h - annotation
r21640:6ebf6839752c
13.4 KiB
text/x-c
(svn r26772) -Cleanup [Squirrel]: remove traces to SQUNICODE define
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 | r14246:d068045bd82f r14246:d068045bd82f r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14282:64e3a6b10a50 r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14845:64c3c2f4c551 r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r17743:39a6588f41d9 r17743:39a6588f41d9 r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r15690:4d4d6685da10 r15690:4d4d6685da10 r15690:4d4d6685da10 r15690:4d4d6685da10 r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r18560:ff3a65f20dab r18560:ff3a65f20dab r14246:d068045bd82f r14246:d068045bd82f r18560:ff3a65f20dab r15690:4d4d6685da10 r18560:ff3a65f20dab r14246:d068045bd82f r14246:d068045bd82f r18560:ff3a65f20dab r15690:4d4d6685da10 r18560:ff3a65f20dab r14246:d068045bd82f r14705:be9a20100bed r14618:a194334b4a3a r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r18560:ff3a65f20dab r14246:d068045bd82f r14246:d068045bd82f r14850:537311950e1a r14283:961fde17c95b r18560:ff3a65f20dab r14856:49dbd79b7511 r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f r14246:d068045bd82f | /* $Id$ */
/*
* This file is part of OpenTTD.
* 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.
* 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.
* 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/>.
*/
/** @file airport_defaults.h Tables with default values for airports and airport tiles. */
#ifndef AIRPORT_DEFAULTS_H
#define AIRPORT_DEFAULTS_H
/**
* Definition of an airport tiles layout.
* @param x offset x of this tile
* @param y offset y of this tile
* @param m StationGfx of the tile
* @see _airport_specs
* @see AirportTileTable
*/
#define MK(x, y, m) {{x, y}, m}
/**
* Terminator of airport tiles layout definition
*/
#define MKEND {{-0x80, 0}, 0}
/** Tiles for Country Airfield (small) */
static AirportTileTable _tile_table_country_0[] = {
MK(0, 0, APT_SMALL_BUILDING_1),
MK(1, 0, APT_SMALL_BUILDING_2),
MK(2, 0, APT_SMALL_BUILDING_3),
MK(3, 0, APT_SMALL_DEPOT_SE),
MK(0, 1, APT_GRASS_FENCE_NE_FLAG),
MK(1, 1, APT_GRASS_1),
MK(2, 1, APT_GRASS_2),
MK(3, 1, APT_GRASS_FENCE_SW),
MK(0, 2, APT_RUNWAY_SMALL_FAR_END),
MK(1, 2, APT_RUNWAY_SMALL_MIDDLE),
MK(2, 2, APT_RUNWAY_SMALL_MIDDLE),
MK(3, 2, APT_RUNWAY_SMALL_NEAR_END),
MKEND
};
static AirportTileTable *_tile_table_country[] = {
_tile_table_country_0,
};
/** Tiles for Commuter Airfield (small) */
static AirportTileTable _tile_table_commuter_0[] = {
MK(0, 0, APT_TOWER),
MK(1, 0, APT_BUILDING_3),
MK(2, 0, APT_HELIPAD_2_FENCE_NW),
MK(3, 0, APT_HELIPAD_2_FENCE_NW),
MK(4, 0, APT_DEPOT_SE),
MK(0, 1, APT_APRON_FENCE_NE),
MK(1, 1, APT_APRON),
MK(2, 1, APT_APRON),
MK(3, 1, APT_APRON),
MK(4, 1, APT_APRON_FENCE_SW),
MK(0, 2, APT_APRON_FENCE_NE),
MK(1, 2, APT_STAND),
MK(2, 2, APT_STAND),
MK(3, 2, APT_STAND),
MK(4, 2, APT_APRON_FENCE_SW),
MK(0, 3, APT_RUNWAY_END_FENCE_SE),
MK(1, 3, APT_RUNWAY_2),
MK(2, 3, APT_RUNWAY_2),
MK(3, 3, APT_RUNWAY_2),
MK(4, 3, APT_RUNWAY_END_FENCE_SE),
MKEND
};
static AirportTileTable *_tile_table_commuter[] = {
_tile_table_commuter_0,
};
/** Tiles for City Airport (large) */
static AirportTileTable _tile_table_city_0[] = {
MK(0, 0, APT_BUILDING_1),
MK(1, 0, APT_APRON_FENCE_NW),
MK(2, 0, APT_STAND_1),
MK(3, 0, APT_APRON_FENCE_NW),
MK(4, 0, APT_APRON_FENCE_NW),
MK(5, 0, APT_DEPOT_SE),
MK(0, 1, APT_BUILDING_2),
MK(1, 1, APT_PIER),
MK(2, 1, APT_ROUND_TERMINAL),
MK(3, 1, APT_STAND_PIER_NE),
MK(4, 1, APT_APRON),
MK(5, 1, APT_APRON_FENCE_SW),
MK(0, 2, APT_BUILDING_3),
MK(1, 2, APT_STAND),
MK(2, 2, APT_PIER_NW_NE),
MK(3, 2, APT_APRON_S),
MK(4, 2, APT_APRON_HOR),
MK(5, 2, APT_APRON_N_FENCE_SW),
MK(0, 3, APT_RADIO_TOWER_FENCE_NE),
MK(1, 3, APT_APRON_W),
MK(2, 3, APT_APRON_VER_CROSSING_S),
MK(3, 3, APT_APRON_HOR_CROSSING_E),
MK(4, 3, APT_ARPON_N),
MK(5, 3, APT_TOWER_FENCE_SW),
MK(0, 4, APT_EMPTY_FENCE_NE),
MK(1, 4, APT_APRON_S),
MK(2, 4, APT_APRON_HOR_CROSSING_W),
MK(3, 4, APT_APRON_VER_CROSSING_N),
MK(4, 4, APT_APRON_E),
MK(5, 4, APT_RADAR_GRASS_FENCE_SW),
MK(0, 5, APT_RUNWAY_END_FENCE_SE),
MK(1, 5, APT_RUNWAY_1),
MK(2, 5, APT_RUNWAY_2),
MK(3, 5, APT_RUNWAY_3),
MK(4, 5, APT_RUNWAY_4),
MK(5, 5, APT_RUNWAY_END_FENCE_SE),
MKEND
};
static AirportTileTable *_tile_table_city[] = {
_tile_table_city_0,
};
/** Tiles for Metropolitain Airport (large) - 2 runways */
static AirportTileTable _tile_table_metropolitan_0[] = {
MK(0, 0, APT_BUILDING_1),
MK(1, 0, APT_APRON_FENCE_NW),
MK(2, 0, APT_STAND_1),
MK(3, 0, APT_APRON_FENCE_NW),
MK(4, 0, APT_APRON_FENCE_NW),
MK(5, 0, APT_DEPOT_SE),
MK(0, 1, APT_BUILDING_2),
MK(1, 1, APT_PIER),
MK(2, 1, APT_ROUND_TERMINAL),
MK(3, 1, APT_STAND_PIER_NE),
MK(4, 1, APT_APRON),
MK(5, 1, APT_APRON_FENCE_SW),
MK(0, 2, APT_BUILDING_3),
MK(1, 2, APT_STAND),
MK(2, 2, APT_PIER_NW_NE),
MK(3, 2, APT_APRON_S),
MK(4, 2, APT_APRON_HOR),
MK(5, 2, APT_APRON_N_FENCE_SW),
MK(0, 3, APT_RADAR_FENCE_NE),
MK(1, 3, APT_APRON),
MK(2, 3, APT_APRON),
MK(3, 3, APT_APRON),
MK(4, 3, APT_APRON),
MK(5, 3, APT_TOWER_FENCE_SW),
MK(0, 4, APT_RUNWAY_END),
MK(1, 4, APT_RUNWAY_5),
MK(2, 4, APT_RUNWAY_5),
MK(3, 4, APT_RUNWAY_5),
MK(4, 4, APT_RUNWAY_5),
MK(5, 4, APT_RUNWAY_END),
MK(0, 5, APT_RUNWAY_END_FENCE_SE),
MK(1, 5, APT_RUNWAY_2),
MK(2, 5, APT_RUNWAY_2),
MK(3, 5, APT_RUNWAY_2),
MK(4, 5, APT_RUNWAY_2),
MK(5, 5, APT_RUNWAY_END_FENCE_SE),
MKEND
};
static AirportTileTable *_tile_table_metropolitan[] = {
_tile_table_metropolitan_0,
};
/** Tiles for International Airport (large) - 2 runways */
static AirportTileTable _tile_table_international_0[] = {
MK(0, 0, APT_RUNWAY_END_FENCE_NW),
MK(1, 0, APT_RUNWAY_FENCE_NW),
MK(2, 0, APT_RUNWAY_FENCE_NW),
MK(3, 0, APT_RUNWAY_FENCE_NW),
MK(4, 0, APT_RUNWAY_FENCE_NW),
MK(5, 0, APT_RUNWAY_FENCE_NW),
MK(6, 0, APT_RUNWAY_END_FENCE_NW),
MK(0, 1, APT_RADIO_TOWER_FENCE_NE),
MK(1, 1, APT_APRON),
MK(2, 1, APT_APRON),
MK(3, 1, APT_APRON),
MK(4, 1, APT_APRON),
MK(5, 1, APT_APRON),
MK(6, 1, APT_DEPOT_SE),
MK(0, 2, APT_BUILDING_3),
MK(1, 2, APT_APRON),
MK(2, 2, APT_STAND),
MK(3, 2, APT_BUILDING_2),
MK(4, 2, APT_STAND),
MK(5, 2, APT_APRON),
MK(6, 2, APT_APRON_FENCE_SW),
MK(0, 3, APT_DEPOT_SE),
MK(1, 3, APT_APRON),
MK(2, 3, APT_STAND),
MK(3, 3, APT_BUILDING_2),
MK(4, 3, APT_STAND),
MK(5, 3, APT_APRON),
MK(6, 3, APT_HELIPAD_1),
MK(0, 4, APT_APRON_FENCE_NE),
MK(1, 4, APT_APRON),
MK(2, 4, APT_STAND),
MK(3, 4, APT_TOWER),
MK(4, 4, APT_STAND),
MK(5, 4, APT_APRON),
MK(6, 4, APT_HELIPAD_1),
MK(0, 5, APT_APRON_FENCE_NE),
MK(1, 5, APT_APRON),
MK(2, 5, APT_APRON),
MK(3, 5, APT_APRON),
MK(4, 5, APT_APRON),
MK(5, 5, APT_APRON),
MK(6, 5, APT_RADAR_FENCE_SW),
MK(0, 6, APT_RUNWAY_END_FENCE_SE),
MK(1, 6, APT_RUNWAY_2),
MK(2, 6, APT_RUNWAY_2),
MK(3, 6, APT_RUNWAY_2),
MK(4, 6, APT_RUNWAY_2),
MK(5, 6, APT_RUNWAY_2),
MK(6, 6, APT_RUNWAY_END_FENCE_SE),
MKEND
};
static AirportTileTable *_tile_table_international[] = {
_tile_table_international_0,
};
/** Tiles for International Airport (large) - 2 runways */
static AirportTileTable _tile_table_intercontinental_0[] = {
MK(0, 0, APT_RADAR_FENCE_NE),
MK(1, 0, APT_RUNWAY_END_FENCE_NE_NW),
MK(2, 0, APT_RUNWAY_FENCE_NW),
MK(3, 0, APT_RUNWAY_FENCE_NW),
MK(4, 0, APT_RUNWAY_FENCE_NW),
MK(5, 0, APT_RUNWAY_FENCE_NW),
MK(6, 0, APT_RUNWAY_FENCE_NW),
MK(7, 0, APT_RUNWAY_FENCE_NW),
MK(8, 0, APT_RUNWAY_END_FENCE_NW_SW),
MK(0, 1, APT_RUNWAY_END_FENCE_NE_NW),
MK(1, 1, APT_RUNWAY_2),
MK(2, 1, APT_RUNWAY_2),
MK(3, 1, APT_RUNWAY_2),
MK(4, 1, APT_RUNWAY_2),
MK(5, 1, APT_RUNWAY_2),
MK(6, 1, APT_RUNWAY_2),
MK(7, 1, APT_RUNWAY_END_FENCE_SE_SW),
MK(8, 1, APT_APRON_FENCE_NE_SW),
MK(0, 2, APT_APRON_FENCE_NE_SW),
MK(1, 2, APT_EMPTY),
MK(2, 2, APT_APRON_FENCE_NE),
MK(3, 2, APT_APRON),
MK(4, 2, APT_APRON),
MK(5, 2, APT_APRON),
MK(6, 2, APT_APRON),
MK(7, 2, APT_RADIO_TOWER_FENCE_NE),
MK(8, 2, APT_APRON_FENCE_NE_SW),
MK(0, 3, APT_APRON_FENCE_NE),
MK(1, 3, APT_APRON_HALF_EAST),
MK(2, 3, APT_APRON_FENCE_NE),
MK(3, 3, APT_TOWER),
MK(4, 3, APT_HELIPAD_2),
MK(5, 3, APT_HELIPAD_2),
MK(6, 3, APT_APRON),
MK(7, 3, APT_APRON_FENCE_NW),
MK(8, 3, APT_APRON_FENCE_SW),
MK(0, 4, APT_APRON_FENCE_NE),
MK(1, 4, APT_APRON),
MK(2, 4, APT_APRON),
MK(3, 4, APT_STAND),
MK(4, 4, APT_BUILDING_1),
MK(5, 4, APT_STAND),
MK(6, 4, APT_APRON),
MK(7, 4, APT_LOW_BUILDING),
MK(8, 4, APT_DEPOT_SE),
MK(0, 5, APT_DEPOT_SE),
MK(1, 5, APT_LOW_BUILDING),
MK(2, 5, APT_APRON),
MK(3, 5, APT_STAND),
MK(4, 5, APT_BUILDING_2),
MK(5, 5, APT_STAND),
MK(6, 5, APT_APRON),
MK(7, 5, APT_APRON),
MK(8, 5, APT_APRON_FENCE_SW),
MK(0, 6, APT_APRON_FENCE_NE),
MK(1, 6, APT_APRON),
MK(2, 6, APT_APRON),
MK(3, 6, APT_STAND),
MK(4, 6, APT_BUILDING_3),
MK(5, 6, APT_STAND),
MK(6, 6, APT_APRON),
MK(7, 6, APT_APRON),
MK(8, 6, APT_APRON_FENCE_SW),
MK(0, 7, APT_APRON_FENCE_NE),
MK(1, 7, APT_APRON_FENCE_SE),
MK(2, 7, APT_APRON),
MK(3, 7, APT_STAND),
MK(4, 7, APT_ROUND_TERMINAL),
MK(5, 7, APT_STAND),
MK(6, 7, APT_APRON_FENCE_SW),
MK(7, 7, APT_APRON_HALF_WEST),
MK(8, 7, APT_APRON_FENCE_SW),
MK(0, 8, APT_APRON_FENCE_NE),
MK(1, 8, APT_GRASS_FENCE_NE_FLAG_2),
MK(2, 8, APT_APRON_FENCE_NE),
MK(3, 8, APT_APRON),
MK(4, 8, APT_APRON),
MK(5, 8, APT_APRON),
MK(6, 8, APT_APRON_FENCE_SW),
MK(7, 8, APT_EMPTY),
MK(8, 8, APT_APRON_FENCE_NE_SW),
MK(0, 9, APT_APRON_FENCE_NE),
MK(1, 9, APT_RUNWAY_END_FENCE_NE_NW),
MK(2, 9, APT_RUNWAY_FENCE_NW),
MK(3, 9, APT_RUNWAY_FENCE_NW),
MK(4, 9, APT_RUNWAY_FENCE_NW),
MK(5, 9, APT_RUNWAY_FENCE_NW),
MK(6, 9, APT_RUNWAY_FENCE_NW),
MK(7, 9, APT_RUNWAY_FENCE_NW),
MK(8, 9, APT_RUNWAY_END_FENCE_SE_SW),
MK(0, 10, APT_RUNWAY_END_FENCE_NE_SE),
MK(1, 10, APT_RUNWAY_2),
MK(2, 10, APT_RUNWAY_2),
MK(3, 10, APT_RUNWAY_2),
MK(4, 10, APT_RUNWAY_2),
MK(5, 10, APT_RUNWAY_2),
MK(6, 10, APT_RUNWAY_2),
MK(7, 10, APT_RUNWAY_END_FENCE_SE_SW),
MK(8, 10, APT_EMPTY),
MKEND
};
static AirportTileTable *_tile_table_intercontinental[] = {
_tile_table_intercontinental_0,
};
/** Tiles for Heliport */
static AirportTileTable _tile_table_heliport_0[] = {
MK(0, 0, APT_HELIPORT),
MKEND
};
static AirportTileTable *_tile_table_heliport[] = {
_tile_table_heliport_0,
};
/** Tiles for Helidepot */
static AirportTileTable _tile_table_helidepot_0[] = {
MK(0, 0, APT_LOW_BUILDING_FENCE_N),
MK(1, 0, APT_DEPOT_SE),
MK(0, 1, APT_HELIPAD_2_FENCE_NE_SE),
MK(1, 1, APT_APRON_FENCE_SE_SW),
MKEND
};
static AirportTileTable *_tile_table_helidepot[] = {
_tile_table_helidepot_0,
};
/** Tiles for Helistation */
static AirportTileTable _tile_table_helistation_0[] = {
MK(0, 0, APT_DEPOT_SE),
MK(1, 0, APT_LOW_BUILDING_FENCE_NW),
MK(2, 0, APT_HELIPAD_3_FENCE_NW),
MK(3, 0, APT_HELIPAD_3_FENCE_NW_SW),
MK(0, 1, APT_APRON_FENCE_NE_SE),
MK(1, 1, APT_APRON_FENCE_SE),
MK(2, 1, APT_APRON_FENCE_SE),
MK(3, 1, APT_HELIPAD_3_FENCE_SE_SW),
MKEND
};
static AirportTileTable *_tile_table_helistation[] = {
_tile_table_helistation_0,
};
static Direction _default_airports_rotation[] = {
DIR_N,
};
#undef MK
#undef MKEND
/** General AirportSpec definition. */
#define AS_GENERIC(fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, maint_cost, ttdpatch_type, class_id, name, preview, enabled) \
{fsm, att, rot, att_len, depot_tbl, num_depots, size_x, size_y, noise, catchment, min_year, max_year, name, ttdpatch_type, class_id, preview, maint_cost, enabled, GRFFileProps(AT_INVALID)}
/** AirportSpec definition for airports without any depot. */
#define AS_ND(ap_name, size_x, size_y, min_year, max_year, catchment, noise, maint_cost, ttdpatch_type, class_id, name, preview) \
AS_GENERIC(&_airportfta_##ap_name, _tile_table_##ap_name, _default_airports_rotation, lengthof(_tile_table_##ap_name), NULL, 0, \
size_x, size_y, noise, catchment, min_year, max_year, maint_cost, ttdpatch_type, class_id, name, preview, true)
/** AirportSpec definition for airports with at least one depot. */
#define AS(ap_name, size_x, size_y, min_year, max_year, catchment, noise, maint_cost, ttdpatch_type, class_id, name, preview) \
AS_GENERIC(&_airportfta_##ap_name, _tile_table_##ap_name, _default_airports_rotation, lengthof(_tile_table_##ap_name), _airport_depots_##ap_name, lengthof(_airport_depots_##ap_name), \
size_x, size_y, noise, catchment, min_year, max_year, maint_cost, ttdpatch_type, class_id, name, preview, true)
/* The helidepot and helistation have ATP_TTDP_SMALL because they are at ground level */
extern const AirportSpec _origin_airport_specs[] = {
AS(country, 4, 3, 0, 1959, 4, 3, 7, ATP_TTDP_SMALL, APC_SMALL, STR_AIRPORT_SMALL, SPR_AIRPORT_PREVIEW_SMALL),
AS(city, 6, 6, 1955, MAX_YEAR, 5, 5, 24, ATP_TTDP_LARGE, APC_LARGE, STR_AIRPORT_CITY, SPR_AIRPORT_PREVIEW_LARGE),
AS_ND(heliport, 1, 1, 1963, MAX_YEAR, 4, 1, 4, ATP_TTDP_HELIPORT, APC_HELIPORT, STR_AIRPORT_HELIPORT, SPR_AIRPORT_PREVIEW_HELIPORT),
AS(metropolitan, 6, 6, 1980, MAX_YEAR, 6, 8, 28, ATP_TTDP_LARGE, APC_LARGE, STR_AIRPORT_METRO, SPR_AIRPORT_PREVIEW_METROPOLITAN),
AS(international, 7, 7, 1990, MAX_YEAR, 8, 17, 42, ATP_TTDP_LARGE, APC_HUB, STR_AIRPORT_INTERNATIONAL, SPR_AIRPORT_PREVIEW_INTERNATIONAL),
AS(commuter, 5, 4, 1983, MAX_YEAR, 4, 4, 20, ATP_TTDP_SMALL, APC_SMALL, STR_AIRPORT_COMMUTER, SPR_AIRPORT_PREVIEW_COMMUTER),
AS(helidepot, 2, 2, 1976, MAX_YEAR, 4, 2, 7, ATP_TTDP_SMALL, APC_HELIPORT, STR_AIRPORT_HELIDEPOT, SPR_AIRPORT_PREVIEW_HELIDEPOT),
AS(intercontinental, 9, 11, 2002, MAX_YEAR, 10, 25, 72, ATP_TTDP_LARGE, APC_HUB, STR_AIRPORT_INTERCONTINENTAL, SPR_AIRPORT_PREVIEW_INTERCONTINENTAL),
AS(helistation, 4, 2, 1980, MAX_YEAR, 4, 3, 14, ATP_TTDP_SMALL, APC_HELIPORT, STR_AIRPORT_HELISTATION, SPR_AIRPORT_PREVIEW_HELISTATION),
AS_GENERIC(&_airportfta_oilrig, NULL, _default_airports_rotation, 0, NULL, 0, 1, 1, 0, 4, 0, 0, 0, ATP_TTDP_OILRIG, APC_HELIPORT, STR_NULL, 0, false),
};
assert_compile(NEW_AIRPORT_OFFSET == lengthof(_origin_airport_specs));
AirportSpec AirportSpec::dummy = AS_GENERIC(&_airportfta_dummy, NULL, _default_airports_rotation, 0, NULL, 0, 0, 0, 0, 0, MIN_YEAR, MIN_YEAR, 0, ATP_TTDP_LARGE, APC_BEGIN, STR_NULL, 0, false);
#undef AS
#undef AS_ND
#undef AS_GENERIC
#endif /* AIRPORT_DEFAULTS_H */
|