OpenTTD Source 20250428-master-g68ba2735ea
|
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 743 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 39 of file bridge_land.h.
|
static |
Definition at line 714 of file bridge_land.h.
|
static |
Definition at line 684 of file bridge_land.h.
|
static |
Definition at line 485 of file bridge_land.h.
|
static |
Definition at line 496 of file bridge_land.h.
|
static |
Definition at line 507 of file bridge_land.h.
|
static |
Definition at line 694 of file bridge_land.h.
|
static |
Definition at line 518 of file bridge_land.h.
|
static |
Definition at line 529 of file bridge_land.h.
|
static |
Definition at line 540 of file bridge_land.h.
|
static |
Definition at line 704 of file bridge_land.h.
|
static |
Definition at line 551 of file bridge_land.h.
|
static |
Definition at line 562 of file bridge_land.h.
|
static |
Definition at line 573 of file bridge_land.h.
|
static |
Definition at line 594 of file bridge_land.h.
|
static |
Definition at line 45 of file bridge_land.h.
|
static |
Definition at line 56 of file bridge_land.h.
|
static |
Definition at line 67 of file bridge_land.h.
|
static |
Definition at line 78 of file bridge_land.h.
|
static |
Definition at line 89 of file bridge_land.h.
|
static |
Definition at line 100 of file bridge_land.h.
|
static |
Definition at line 111 of file bridge_land.h.
|
static |
Definition at line 604 of file bridge_land.h.
|
static |
Definition at line 122 of file bridge_land.h.
|
static |
Definition at line 133 of file bridge_land.h.
|
static |
Definition at line 144 of file bridge_land.h.
|
static |
Definition at line 155 of file bridge_land.h.
|
static |
Definition at line 166 of file bridge_land.h.
|
static |
Definition at line 177 of file bridge_land.h.
|
static |
Definition at line 188 of file bridge_land.h.
|
static |
Definition at line 624 of file bridge_land.h.
|
static |
Definition at line 199 of file bridge_land.h.
|
static |
Definition at line 210 of file bridge_land.h.
|
static |
Definition at line 221 of file bridge_land.h.
|
static |
Definition at line 232 of file bridge_land.h.
|
static |
Definition at line 634 of file bridge_land.h.
|
static |
Definition at line 243 of file bridge_land.h.
|
static |
Definition at line 254 of file bridge_land.h.
|
static |
Definition at line 265 of file bridge_land.h.
|
static |
Definition at line 276 of file bridge_land.h.
|
static |
Definition at line 644 of file bridge_land.h.
|
static |
Definition at line 287 of file bridge_land.h.
|
static |
Definition at line 298 of file bridge_land.h.
|
static |
Definition at line 309 of file bridge_land.h.
|
static |
Definition at line 320 of file bridge_land.h.
|
static |
Definition at line 674 of file bridge_land.h.
|
static |
Definition at line 474 of file bridge_land.h.
|
static |
Definition at line 584 of file bridge_land.h.
|
static |
Definition at line 386 of file bridge_land.h.
|
static |
Definition at line 375 of file bridge_land.h.
|
static |
Definition at line 664 of file bridge_land.h.
|
static |
Definition at line 364 of file bridge_land.h.
|
static |
Definition at line 353 of file bridge_land.h.
|
static |
Definition at line 614 of file bridge_land.h.
|
static |
Definition at line 397 of file bridge_land.h.
|
static |
Definition at line 408 of file bridge_land.h.
|
static |
Definition at line 419 of file bridge_land.h.
|
static |
Definition at line 430 of file bridge_land.h.
|
static |
Definition at line 441 of file bridge_land.h.
|
static |
Definition at line 452 of file bridge_land.h.
|
static |
Definition at line 463 of file bridge_land.h.
|
static |
Definition at line 654 of file bridge_land.h.
|
static |
Definition at line 342 of file bridge_land.h.
|
static |
Definition at line 331 of file bridge_land.h.
const BridgeSpec _orig_bridge[] |
Definition at line 746 of file bridge_land.h.