OpenTTD Source 20250725-master-g3e06c69e26
|
This file contains all the sprites for bridges It consists of a number of arrays. More...
#include "table/strings.h"
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) {TimerGameCalendar::Year{y}, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, {}, 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 | |||
) | {TimerGameCalendar::Year{y}, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, {}, 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 748 of file bridge_land.h.
#define MC | ( | a | ) | {a, PALETTE_TO_STRUCT_CONCRETE} |
Definition at line 37 of file bridge_land.h.
#define MN | ( | a | ) | {a, PAL_NONE} |
Definition at line 34 of file bridge_land.h.
#define MR | ( | a | ) | {a, PALETTE_TO_STRUCT_RED} |
Definition at line 35 of file bridge_land.h.
#define MW | ( | a | ) | {a, PALETTE_TO_STRUCT_WHITE} |
Definition at line 36 of file bridge_land.h.
|
static |
Definition at line 46 of file bridge_land.h.
|
static |
Definition at line 40 of file bridge_land.h.
|
static |
Definition at line 719 of file bridge_land.h.
|
static |
Definition at line 689 of file bridge_land.h.
|
static |
Definition at line 490 of file bridge_land.h.
|
static |
Definition at line 501 of file bridge_land.h.
|
static |
Definition at line 512 of file bridge_land.h.
|
static |
Definition at line 699 of file bridge_land.h.
|
static |
Definition at line 523 of file bridge_land.h.
|
static |
Definition at line 534 of file bridge_land.h.
|
static |
Definition at line 545 of file bridge_land.h.
|
static |
Definition at line 709 of file bridge_land.h.
|
static |
Definition at line 556 of file bridge_land.h.
|
static |
Definition at line 567 of file bridge_land.h.
|
static |
Definition at line 578 of file bridge_land.h.
|
static |
Definition at line 599 of file bridge_land.h.
|
static |
Definition at line 50 of file bridge_land.h.
|
static |
Definition at line 61 of file bridge_land.h.
|
static |
Definition at line 72 of file bridge_land.h.
|
static |
Definition at line 83 of file bridge_land.h.
|
static |
Definition at line 94 of file bridge_land.h.
|
static |
Definition at line 105 of file bridge_land.h.
|
static |
Definition at line 116 of file bridge_land.h.
|
static |
Definition at line 609 of file bridge_land.h.
|
static |
Definition at line 127 of file bridge_land.h.
|
static |
Definition at line 138 of file bridge_land.h.
|
static |
Definition at line 149 of file bridge_land.h.
|
static |
Definition at line 160 of file bridge_land.h.
|
static |
Definition at line 171 of file bridge_land.h.
|
static |
Definition at line 182 of file bridge_land.h.
|
static |
Definition at line 193 of file bridge_land.h.
|
static |
Definition at line 629 of file bridge_land.h.
|
static |
Definition at line 204 of file bridge_land.h.
|
static |
Definition at line 215 of file bridge_land.h.
|
static |
Definition at line 226 of file bridge_land.h.
|
static |
Definition at line 237 of file bridge_land.h.
|
static |
Definition at line 639 of file bridge_land.h.
|
static |
Definition at line 248 of file bridge_land.h.
|
static |
Definition at line 259 of file bridge_land.h.
|
static |
Definition at line 270 of file bridge_land.h.
|
static |
Definition at line 281 of file bridge_land.h.
|
static |
Definition at line 649 of file bridge_land.h.
|
static |
Definition at line 292 of file bridge_land.h.
|
static |
Definition at line 303 of file bridge_land.h.
|
static |
Definition at line 314 of file bridge_land.h.
|
static |
Definition at line 325 of file bridge_land.h.
|
static |
Definition at line 679 of file bridge_land.h.
|
static |
Definition at line 479 of file bridge_land.h.
|
static |
Definition at line 589 of file bridge_land.h.
|
static |
Definition at line 391 of file bridge_land.h.
|
static |
Definition at line 380 of file bridge_land.h.
|
static |
Definition at line 669 of file bridge_land.h.
|
static |
Definition at line 369 of file bridge_land.h.
|
static |
Definition at line 358 of file bridge_land.h.
|
static |
Definition at line 619 of file bridge_land.h.
|
static |
Definition at line 402 of file bridge_land.h.
|
static |
Definition at line 413 of file bridge_land.h.
|
static |
Definition at line 424 of file bridge_land.h.
|
static |
Definition at line 435 of file bridge_land.h.
|
static |
Definition at line 446 of file bridge_land.h.
|
static |
Definition at line 457 of file bridge_land.h.
|
static |
Definition at line 468 of file bridge_land.h.
|
static |
Definition at line 659 of file bridge_land.h.
|
static |
Definition at line 347 of file bridge_land.h.
|
static |
Definition at line 336 of file bridge_land.h.
const BridgeSpec _orig_bridge[] |
Definition at line 751 of file bridge_land.h.