OpenTTD Source 20241224-master-gee860a5c8e
|
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. | |
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.
#define MC | ( | a | ) | {a, PALETTE_TO_STRUCT_CONCRETE} |
Definition at line 35 of file bridge_land.h.
#define MN | ( | a | ) | {a, PAL_NONE} |
Definition at line 32 of file bridge_land.h.
#define MR | ( | a | ) | {a, PALETTE_TO_STRUCT_RED} |
Definition at line 33 of file bridge_land.h.
#define MW | ( | a | ) | {a, PALETTE_TO_STRUCT_WHITE} |
Definition at line 34 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.
const BridgeSpec _orig_bridge[] |
Definition at line 744 of file bridge_land.h.