|
OpenTTD Source 20260108-master-g8ba1860eaa
|
This file contains all the sprites for bridges. 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, pillars) {TimerGameCalendar::Year{y}, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, {}, 0, {}, pillars} |
| 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, | |||
| pillars | |||
| ) | {TimerGameCalendar::Year{y}, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, {}, 0, {}, pillars} |
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 749 of file bridge_land.h.
| #define MC | ( | a | ) | {a, PALETTE_TO_STRUCT_CONCRETE} |
Definition at line 38 of file bridge_land.h.
| #define MN | ( | a | ) | {a, PAL_NONE} |
Definition at line 35 of file bridge_land.h.
| #define MR | ( | a | ) | {a, PALETTE_TO_STRUCT_RED} |
Definition at line 36 of file bridge_land.h.
| #define MW | ( | a | ) | {a, PALETTE_TO_STRUCT_WHITE} |
Definition at line 37 of file bridge_land.h.
|
static |
Definition at line 47 of file bridge_land.h.
|
static |
Definition at line 41 of file bridge_land.h.
|
static |
Definition at line 720 of file bridge_land.h.
|
static |
Definition at line 590 of file bridge_land.h.
|
static |
Definition at line 392 of file bridge_land.h.
|
static |
Definition at line 381 of file bridge_land.h.
|
static |
Definition at line 640 of file bridge_land.h.
|
static |
Definition at line 282 of file bridge_land.h.
|
static |
Definition at line 271 of file bridge_land.h.
|
static |
Definition at line 249 of file bridge_land.h.
|
static |
Definition at line 260 of file bridge_land.h.
|
static |
Definition at line 630 of file bridge_land.h.
|
static |
Definition at line 238 of file bridge_land.h.
|
static |
Definition at line 227 of file bridge_land.h.
|
static |
Definition at line 205 of file bridge_land.h.
|
static |
Definition at line 216 of file bridge_land.h.
|
static |
Definition at line 650 of file bridge_land.h.
|
static |
Definition at line 326 of file bridge_land.h.
|
static |
Definition at line 315 of file bridge_land.h.
|
static |
Definition at line 293 of file bridge_land.h.
|
static |
Definition at line 304 of file bridge_land.h.
|
static |
Definition at line 670 of file bridge_land.h.
|
static |
Definition at line 370 of file bridge_land.h.
|
static |
Definition at line 359 of file bridge_land.h.
|
static |
Definition at line 469 of file bridge_land.h.
|
static |
Definition at line 117 of file bridge_land.h.
|
static |
Definition at line 194 of file bridge_land.h.
|
static |
Definition at line 680 of file bridge_land.h.
|
static |
Definition at line 480 of file bridge_land.h.
|
static |
Definition at line 620 of file bridge_land.h.
|
static |
Definition at line 425 of file bridge_land.h.
|
static |
Definition at line 436 of file bridge_land.h.
|
static |
Definition at line 458 of file bridge_land.h.
|
static |
Definition at line 447 of file bridge_land.h.
|
static |
Definition at line 403 of file bridge_land.h.
|
static |
Definition at line 414 of file bridge_land.h.
|
static |
Definition at line 106 of file bridge_land.h.
|
static |
Definition at line 600 of file bridge_land.h.
|
static |
Definition at line 73 of file bridge_land.h.
|
static |
Definition at line 84 of file bridge_land.h.
|
static |
Definition at line 95 of file bridge_land.h.
|
static |
Definition at line 51 of file bridge_land.h.
|
static |
Definition at line 62 of file bridge_land.h.
|
static |
Definition at line 610 of file bridge_land.h.
|
static |
Definition at line 150 of file bridge_land.h.
|
static |
Definition at line 161 of file bridge_land.h.
|
static |
Definition at line 183 of file bridge_land.h.
|
static |
Definition at line 172 of file bridge_land.h.
|
static |
Definition at line 128 of file bridge_land.h.
|
static |
Definition at line 139 of file bridge_land.h.
|
static |
Definition at line 690 of file bridge_land.h.
|
static |
Definition at line 513 of file bridge_land.h.
|
static |
Definition at line 491 of file bridge_land.h.
|
static |
Definition at line 502 of file bridge_land.h.
|
static |
Definition at line 710 of file bridge_land.h.
|
static |
Definition at line 579 of file bridge_land.h.
|
static |
Definition at line 557 of file bridge_land.h.
|
static |
Definition at line 568 of file bridge_land.h.
|
static |
Definition at line 700 of file bridge_land.h.
|
static |
Definition at line 546 of file bridge_land.h.
|
static |
Definition at line 524 of file bridge_land.h.
|
static |
Definition at line 535 of file bridge_land.h.
|
static |
Definition at line 660 of file bridge_land.h.
|
static |
Definition at line 348 of file bridge_land.h.
|
static |
Definition at line 337 of file bridge_land.h.
| const BridgeSpec _orig_bridge[] |
Definition at line 786 of file bridge_land.h.
|
static |
Pillar flags for bridges which have pillars on the all corners on each piece.
Definition at line 757 of file bridge_land.h.
|
staticconstexpr |
Definition at line 752 of file bridge_land.h.
|
static |
Pillar flags for cantilever style bridges.
Definition at line 777 of file bridge_land.h.
|
static |
Pillar flags for suspension style bridges.
Definition at line 767 of file bridge_land.h.