OpenTTD Source
20241121-master-g67a0fccfad
|
This file contains all the sprites for bridges It consists of a number of arrays. More...
Go to the source code of this file.
Macros | |
#define | MN(a) {a, PAL_NONE} |
#define | MR(a) {a, PALETTE_TO_STRUCT_RED} |
#define | MW(a) {a, PALETTE_TO_STRUCT_WHITE} |
#define | MC(a) {a, PALETTE_TO_STRUCT_CONCRETE} |
#define | MBR(y, mnl, mxl, p, mxs, spr, plt, dsc, nrl, nrd) {y, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, nullptr, 0} |
Describes the data that defines each bridge in the game. More... | |
Variables | |
static const PalSpriteID | _aqueduct_sprites [] |
static const PalSpriteID | _bridge_sprite_table_4_0 [] |
static const PalSpriteID | _bridge_sprite_table_4_1 [] |
static const PalSpriteID | _bridge_sprite_table_4_2 [] |
static const PalSpriteID | _bridge_sprite_table_4_3 [] |
static const PalSpriteID | _bridge_sprite_table_4_4 [] |
static const PalSpriteID | _bridge_sprite_table_4_5 [] |
static const PalSpriteID | _bridge_sprite_table_4_6 [] |
static const PalSpriteID | _bridge_sprite_table_5_0 [] |
static const PalSpriteID | _bridge_sprite_table_5_1 [] |
static const PalSpriteID | _bridge_sprite_table_5_2 [] |
static const PalSpriteID | _bridge_sprite_table_5_3 [] |
static const PalSpriteID | _bridge_sprite_table_5_4 [] |
static const PalSpriteID | _bridge_sprite_table_5_5 [] |
static const PalSpriteID | _bridge_sprite_table_5_6 [] |
static const PalSpriteID | _bridge_sprite_table_6_0 [] |
static const PalSpriteID | _bridge_sprite_table_6_1 [] |
static const PalSpriteID | _bridge_sprite_table_6_2 [] |
static const PalSpriteID | _bridge_sprite_table_6_3 [] |
static const PalSpriteID | _bridge_sprite_table_7_0 [] |
static const PalSpriteID | _bridge_sprite_table_7_1 [] |
static const PalSpriteID | _bridge_sprite_table_7_2 [] |
static const PalSpriteID | _bridge_sprite_table_7_3 [] |
static const PalSpriteID | _bridge_sprite_table_8_0 [] |
static const PalSpriteID | _bridge_sprite_table_8_1 [] |
static const PalSpriteID | _bridge_sprite_table_8_2 [] |
static const PalSpriteID | _bridge_sprite_table_8_3 [] |
static const PalSpriteID | _bridge_sprite_table_wood_middle [] |
static const PalSpriteID | _bridge_sprite_table_wood_heads [] |
static const PalSpriteID | _bridge_sprite_table_concrete_middle [] |
static const PalSpriteID | _bridge_sprite_table_concrete_heads [] |
static const PalSpriteID | _bridge_sprite_table_archgirder_middle [] |
static const PalSpriteID | _bridge_sprite_table_archgirder_heads [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_A [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_B [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_C [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_D [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_E [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_F [] |
static const PalSpriteID | _bridge_sprite_table_concrete_suspended_heads [] |
static const PalSpriteID | _bridge_sprite_table_9_0 [] |
static const PalSpriteID | _bridge_sprite_table_10_0 [] |
static const PalSpriteID | _bridge_sprite_table_10_1 [] |
static const PalSpriteID | _bridge_sprite_table_10_2 [] |
static const PalSpriteID | _bridge_sprite_table_11_0 [] |
static const PalSpriteID | _bridge_sprite_table_11_1 [] |
static const PalSpriteID | _bridge_sprite_table_11_2 [] |
static const PalSpriteID | _bridge_sprite_table_12_0 [] |
static const PalSpriteID | _bridge_sprite_table_12_1 [] |
static const PalSpriteID | _bridge_sprite_table_12_2 [] |
static const PalSpriteID *const | _bridge_sprite_table_archgirder [] |
static const PalSpriteID *const | _bridge_sprite_table_4 [] |
static const PalSpriteID *const | _bridge_sprite_table_5 [] |
static const PalSpriteID *const | _bridge_sprite_table_concrete_suspended [] |
static const PalSpriteID *const | _bridge_sprite_table_6 [] |
static const PalSpriteID *const | _bridge_sprite_table_7 [] |
static const PalSpriteID *const | _bridge_sprite_table_8 [] |
static const PalSpriteID *const | _bridge_sprite_table_wood [] |
static const PalSpriteID *const | _bridge_sprite_table_concrete [] |
static const PalSpriteID *const | _bridge_sprite_table_9 [] |
static const PalSpriteID *const | _bridge_sprite_table_10 [] |
static const PalSpriteID *const | _bridge_sprite_table_11 [] |
static const PalSpriteID *const | _bridge_sprite_table_12 [] |
static const PalSpriteID *const *const | _bridge_sprite_table [MAX_BRIDGES] |
const BridgeSpec | _orig_bridge [] |
This file contains all the sprites for bridges It consists of a number of arrays.
_bridge_sprite_table_n_m. Defines all the sprites of a bridge besides the pylons. n defines the number of the bridge type, m the number of the section. the highest m for each bridge set defines the heads.
Sprites for middle sections are arranged in groups of four, the elements are:
First group is for railway in X direction, second for railway in Y direction, two groups each follow for road, monorail and maglev
Elements for heads are arranged in groups of eight:
This is repeated 4 times, for rail, road, monorail, maglev
Definition in file bridge_land.h.
#define MBR | ( | y, | |
mnl, | |||
mxl, | |||
p, | |||
mxs, | |||
spr, | |||
plt, | |||
dsc, | |||
nrl, | |||
nrd | |||
) | {y, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, nullptr, 0} |
Describes the data that defines each bridge in the game.
y | year of availability |
mnl | minimum length (not counting bridge heads) |
mxl | maximum length (not counting bridge heads) |
p | price multiplier |
mxs | maximum speed allowed (1 unit = 1/1.6 mph = 1 km-ish/h) |
spr | sprite to use in purchase GUI |
plt | palette for the sprite in purchase GUI |
dsc | description of the bridge in purchase GUI |
nrl | description of the rail bridge in query tool |
nrd | description of the road bridge in query tool |
Definition at line 741 of file bridge_land.h.
|
static |
Definition at line 37 of file bridge_land.h.
|
static |
Definition at line 712 of file bridge_land.h.
|
static |
Definition at line 682 of file bridge_land.h.
|
static |
Definition at line 483 of file bridge_land.h.
|
static |
Definition at line 494 of file bridge_land.h.
|
static |
Definition at line 505 of file bridge_land.h.
|
static |
Definition at line 692 of file bridge_land.h.
|
static |
Definition at line 516 of file bridge_land.h.
|
static |
Definition at line 527 of file bridge_land.h.
|
static |
Definition at line 538 of file bridge_land.h.
|
static |
Definition at line 702 of file bridge_land.h.
|
static |
Definition at line 549 of file bridge_land.h.
|
static |
Definition at line 560 of file bridge_land.h.
|
static |
Definition at line 571 of file bridge_land.h.
|
static |
Definition at line 592 of file bridge_land.h.
|
static |
Definition at line 43 of file bridge_land.h.
|
static |
Definition at line 54 of file bridge_land.h.
|
static |
Definition at line 65 of file bridge_land.h.
|
static |
Definition at line 76 of file bridge_land.h.
|
static |
Definition at line 87 of file bridge_land.h.
|
static |
Definition at line 98 of file bridge_land.h.
|
static |
Definition at line 109 of file bridge_land.h.
|
static |
Definition at line 602 of file bridge_land.h.
|
static |
Definition at line 120 of file bridge_land.h.
|
static |
Definition at line 131 of file bridge_land.h.
|
static |
Definition at line 142 of file bridge_land.h.
|
static |
Definition at line 153 of file bridge_land.h.
|
static |
Definition at line 164 of file bridge_land.h.
|
static |
Definition at line 175 of file bridge_land.h.
|
static |
Definition at line 186 of file bridge_land.h.
|
static |
Definition at line 622 of file bridge_land.h.
|
static |
Definition at line 197 of file bridge_land.h.
|
static |
Definition at line 208 of file bridge_land.h.
|
static |
Definition at line 219 of file bridge_land.h.
|
static |
Definition at line 230 of file bridge_land.h.
|
static |
Definition at line 632 of file bridge_land.h.
|
static |
Definition at line 241 of file bridge_land.h.
|
static |
Definition at line 252 of file bridge_land.h.
|
static |
Definition at line 263 of file bridge_land.h.
|
static |
Definition at line 274 of file bridge_land.h.
|
static |
Definition at line 642 of file bridge_land.h.
|
static |
Definition at line 285 of file bridge_land.h.
|
static |
Definition at line 296 of file bridge_land.h.
|
static |
Definition at line 307 of file bridge_land.h.
|
static |
Definition at line 318 of file bridge_land.h.
|
static |
Definition at line 672 of file bridge_land.h.
|
static |
Definition at line 472 of file bridge_land.h.
|
static |
Definition at line 582 of file bridge_land.h.
|
static |
Definition at line 384 of file bridge_land.h.
|
static |
Definition at line 373 of file bridge_land.h.
|
static |
Definition at line 662 of file bridge_land.h.
|
static |
Definition at line 362 of file bridge_land.h.
|
static |
Definition at line 351 of file bridge_land.h.
|
static |
Definition at line 612 of file bridge_land.h.
|
static |
Definition at line 395 of file bridge_land.h.
|
static |
Definition at line 406 of file bridge_land.h.
|
static |
Definition at line 417 of file bridge_land.h.
|
static |
Definition at line 428 of file bridge_land.h.
|
static |
Definition at line 439 of file bridge_land.h.
|
static |
Definition at line 450 of file bridge_land.h.
|
static |
Definition at line 461 of file bridge_land.h.
|
static |
Definition at line 652 of file bridge_land.h.
|
static |
Definition at line 340 of file bridge_land.h.
|
static |
Definition at line 329 of file bridge_land.h.