OpenTTD Source
20241108-master-g80f628063a
|
Tables with default industry layouts and behaviours. More...
Go to the source code of this file.
Macros | |
#define | MK(x, y, m) {{x, y}, m} |
Definition of an industry tiles layout. More... | |
#define | MI(tbl, snd, d, pc, ai1, ai2, ai3, ai4, ag1, ag2, ag3, ag4, col, c1, c2, c3, proc, p1, r1, p2, r2, m, a1, im1, a2, im2, a3, im3, pr, clim, bev, in, intx, s1, s2, s3) |
Writes the properties of an industry into the IndustrySpec struct. More... | |
#define | MT(ca1, c1, ca2, c2, ca3, c3, sl, a1, a2, a3) |
Writes the properties of an industry tile into the IndustryTileSpec struct. More... | |
Variables | |
static const IndustryTileLayout | _tile_table_coal_mine_0 |
static const IndustryTileLayout | _tile_table_coal_mine_1 |
static const IndustryTileLayout | _tile_table_coal_mine_2 |
static const IndustryTileLayout | _tile_table_coal_mine_3 |
static const std::vector< IndustryTileLayout > | _tile_table_coal_mine |
static const IndustryTileLayout | _tile_table_power_station_0 |
static const IndustryTileLayout | _tile_table_power_station_1 |
static const IndustryTileLayout | _tile_table_power_station_2 |
static const std::vector< IndustryTileLayout > | _tile_table_power_station |
static const IndustryTileLayout | _tile_table_sawmill_0 |
static const IndustryTileLayout | _tile_table_sawmill_1 |
static const std::vector< IndustryTileLayout > | _tile_table_sawmill |
static const IndustryTileLayout | _tile_table_forest_0 |
static const IndustryTileLayout | _tile_table_forest_1 |
static const std::vector< IndustryTileLayout > | _tile_table_forest |
static const IndustryTileLayout | _tile_table_oil_refinery_0 |
static const IndustryTileLayout | _tile_table_oil_refinery_1 |
static const std::vector< IndustryTileLayout > | _tile_table_oil_refinery |
static const IndustryTileLayout | _tile_table_oil_rig_0 |
static const std::vector< IndustryTileLayout > | _tile_table_oil_rig |
static const IndustryTileLayout | _tile_table_factory_0 |
static const IndustryTileLayout | _tile_table_factory_1 |
static const std::vector< IndustryTileLayout > | _tile_table_factory |
static const IndustryTileLayout | _tile_table_printing_works_0 |
static const IndustryTileLayout | _tile_table_printing_works_1 |
static const std::vector< IndustryTileLayout > | _tile_table_printing_works |
static const IndustryTileLayout | _tile_table_steel_mill_0 |
static const IndustryTileLayout | _tile_table_steel_mill_1 |
static const std::vector< IndustryTileLayout > | _tile_table_steel_mill |
static const IndustryTileLayout | _tile_table_farm_0 |
static const IndustryTileLayout | _tile_table_farm_1 |
static const IndustryTileLayout | _tile_table_farm_2 |
static const std::vector< IndustryTileLayout > | _tile_table_farm |
static const IndustryTileLayout | _tile_table_copper_mine_0 |
static const IndustryTileLayout | _tile_table_copper_mine_1 |
static const std::vector< IndustryTileLayout > | _tile_table_copper_mine |
static const IndustryTileLayout | _tile_table_oil_well_0 |
static const IndustryTileLayout | _tile_table_oil_well_1 |
static const std::vector< IndustryTileLayout > | _tile_table_oil_well |
static const IndustryTileLayout | _tile_table_bank_0 |
static const std::vector< IndustryTileLayout > | _tile_table_bank |
static const IndustryTileLayout | _tile_table_food_process_0 |
static const IndustryTileLayout | _tile_table_food_process_1 |
static const std::vector< IndustryTileLayout > | _tile_table_food_process |
static const IndustryTileLayout | _tile_table_paper_mill_0 |
static const std::vector< IndustryTileLayout > | _tile_table_paper_mill |
static const IndustryTileLayout | _tile_table_gold_mine_0 |
static const std::vector< IndustryTileLayout > | _tile_table_gold_mine |
static const IndustryTileLayout | _tile_table_bank2_0 |
static const std::vector< IndustryTileLayout > | _tile_table_bank2 |
static const IndustryTileLayout | _tile_table_diamond_mine_0 |
static const std::vector< IndustryTileLayout > | _tile_table_diamond_mine |
static const IndustryTileLayout | _tile_table_iron_mine_0 |
static const std::vector< IndustryTileLayout > | _tile_table_iron_mine |
static const IndustryTileLayout | _tile_table_fruit_plantation_0 |
static const std::vector< IndustryTileLayout > | _tile_table_fruit_plantation |
static const IndustryTileLayout | _tile_table_rubber_plantation_0 |
static const std::vector< IndustryTileLayout > | _tile_table_rubber_plantation |
static const IndustryTileLayout | _tile_table_water_supply_0 |
static const std::vector< IndustryTileLayout > | _tile_table_water_supply |
static const IndustryTileLayout | _tile_table_water_tower_0 |
static const std::vector< IndustryTileLayout > | _tile_table_water_tower |
static const IndustryTileLayout | _tile_table_factory2_0 |
static const IndustryTileLayout | _tile_table_factory2_1 |
static const std::vector< IndustryTileLayout > | _tile_table_factory2 |
static const IndustryTileLayout | _tile_table_farm2_0 |
static const IndustryTileLayout | _tile_table_farm2_1 |
static const IndustryTileLayout | _tile_table_farm2_2 |
static const std::vector< IndustryTileLayout > | _tile_table_farm2 |
static const IndustryTileLayout | _tile_table_lumber_mill_0 |
static const std::vector< IndustryTileLayout > | _tile_table_lumber_mill |
static const IndustryTileLayout | _tile_table_cotton_candy_0 |
static const IndustryTileLayout | _tile_table_cotton_candy_1 |
static const std::vector< IndustryTileLayout > | _tile_table_cotton_candy |
static const IndustryTileLayout | _tile_table_candy_factory_0 |
static const IndustryTileLayout | _tile_table_candy_factory_1 |
static const std::vector< IndustryTileLayout > | _tile_table_candy_factory |
static const IndustryTileLayout | _tile_table_battery_farm_0 |
static const std::vector< IndustryTileLayout > | _tile_table_battery_farm |
static const IndustryTileLayout | _tile_table_cola_wells_0 |
static const IndustryTileLayout | _tile_table_cola_wells_1 |
static const std::vector< IndustryTileLayout > | _tile_table_cola_wells |
static const IndustryTileLayout | _tile_table_toy_shop_0 |
static const std::vector< IndustryTileLayout > | _tile_table_toy_shop |
static const IndustryTileLayout | _tile_table_toy_factory_0 |
static const std::vector< IndustryTileLayout > | _tile_table_toy_factory |
static const IndustryTileLayout | _tile_table_plastic_fountain_0 |
static const IndustryTileLayout | _tile_table_plastic_fountain_1 |
static const std::vector< IndustryTileLayout > | _tile_table_plastic_fountain |
static const IndustryTileLayout | _tile_table_fizzy_drink_0 |
static const std::vector< IndustryTileLayout > | _tile_table_fizzy_drink |
static const IndustryTileLayout | _tile_table_bubble_generator_0 |
static const std::vector< IndustryTileLayout > | _tile_table_bubble_generator |
static const IndustryTileLayout | _tile_table_toffee_quarry_0 |
static const std::vector< IndustryTileLayout > | _tile_table_toffee_quarry |
static const IndustryTileLayout | _tile_table_sugar_mine_0 |
static const std::vector< IndustryTileLayout > | _tile_table_sugar_mine |
static const std::initializer_list< uint8_t > | _sawmill_sounds = { SND_28_SAWMILL } |
Array with saw sound, for sawmill. | |
static const std::initializer_list< uint8_t > | _factory_sounds = { SND_03_FACTORY } |
Array with whistle sound, for factory. | |
static const std::initializer_list< uint8_t > | _farm_sounds = { SND_24_FARM_1, SND_25_FARM_2, SND_26_FARM_3 } |
Array with 3 animal sounds, for farms. | |
static const std::initializer_list< uint8_t > | _plastic_mine_sounds = { SND_33_PLASTIC_MINE } |
Array with... More... | |
static const IndustrySpec | _origin_industry_specs [NEW_INDUSTRYOFFSET] |
static const IndustryTileSpec | _origin_industry_tile_specs [NEW_INDUSTRYTILEOFFSET] |
Tables with default industry layouts and behaviours.
Definition in file build_industry.h.
#define MI | ( | tbl, | |
snd, | |||
d, | |||
pc, | |||
ai1, | |||
ai2, | |||
ai3, | |||
ai4, | |||
ag1, | |||
ag2, | |||
ag3, | |||
ag4, | |||
col, | |||
c1, | |||
c2, | |||
c3, | |||
proc, | |||
p1, | |||
r1, | |||
p2, | |||
r2, | |||
m, | |||
a1, | |||
im1, | |||
a2, | |||
im2, | |||
a3, | |||
im3, | |||
pr, | |||
clim, | |||
bev, | |||
in, | |||
intx, | |||
s1, | |||
s2, | |||
s3 | |||
) |
Writes the properties of an industry into the IndustrySpec struct.
tbl | tile table |
sndc | number of sounds |
snd | sounds table |
d | cost multiplier |
pc | prospecting chance |
ai1 | appear chance ingame - temperate |
ai2 | appear chance ingame - arctic |
ai3 | appear chance ingame - tropic |
ai4 | appear chance ingame - toyland |
ag1 | appear chance random creation - temperate |
ag2 | appear chance random creation - arctic |
ag3 | appear chance random creation - tropic |
ag4 | appear chance random creation - toyland |
col | map colour |
c1 | industry proximity refusal - 1st |
c2 | industry proximity refusal - 2nd |
c3 | industry proximity refusal - 3th |
proc | check procedure index |
p1 | produce cargo 1 |
r1 | rate of production 1 |
p2 | produce cargo 2 |
r2 | rate of production 1 |
m | minimum cargo moved to station |
a1 | accepted cargo 1 |
im1 | input multiplier for cargo 1 |
a2 | accepted cargo 2 |
im2 | input multiplier for cargo 2 |
a3 | accepted cargo 3 |
im3 | input multiplier for cargo 3 |
pr | industry life (actually, the same as extractive, organic, processing in ttdpatch's specs) |
clim | climate availability |
bev | industry behaviour |
in | name |
intx | text while building |
s1 | text for closure |
s2 | text for production up |
s3 | text for production down |
Definition at line 1128 of file build_industry.h.
#define MK | ( | x, | |
y, | |||
m | |||
) | {{x, y}, m} |
Definition of an industry tiles layout.
x | offset x of this tile |
y | offset y of this tile |
m | index of the tile. |
Definition at line 21 of file build_industry.h.
#define MT | ( | ca1, | |
c1, | |||
ca2, | |||
c2, | |||
ca3, | |||
c3, | |||
sl, | |||
a1, | |||
a2, | |||
a3 | |||
) |
Writes the properties of an industry tile into the IndustryTileSpec struct.
ca1 | acceptance of first cargo |
c1 | first type of cargo accepted for this tile |
ca2 | acceptance of second cargo |
c2 | second cargo |
ca3 | acceptance of third cargo |
c3 | and third cargo. Those three are in an array |
sl | slope refused upon choosing a place to build |
a1 | animation frame on production |
a2 | next frame of animation |
a3 | chooses between animation or construction state |
Definition at line 1535 of file build_industry.h.
|
static |
|
static |
Definition at line 504 of file build_industry.h.
|
static |
Definition at line 592 of file build_industry.h.
|
static |
Definition at line 587 of file build_industry.h.
|
static |
Definition at line 499 of file build_industry.h.
|
static |
Definition at line 904 of file build_industry.h.
|
static |
Definition at line 881 of file build_industry.h.
|
static |
Definition at line 1003 of file build_industry.h.
|
static |
|
static |
Definition at line 876 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 66 of file build_industry.h.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 929 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 473 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 841 of file build_industry.h.
|
static |
Definition at line 794 of file build_industry.h.
|
static |
Definition at line 815 of file build_industry.h.
|
static |
Definition at line 608 of file build_industry.h.
|
static |
|
static |
Definition at line 325 of file build_industry.h.
|
static |
Definition at line 730 of file build_industry.h.
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 444 of file build_industry.h.
|
static |
Definition at line 777 of file build_industry.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 984 of file build_industry.h.
|
static |
|
static |
Definition at line 540 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 184 of file build_industry.h.
|
static |
Definition at line 137 of file build_industry.h.
|
static |
Definition at line 158 of file build_industry.h.
|
static |
Definition at line 658 of file build_industry.h.
|
static |
Definition at line 635 of file build_industry.h.
|
static |
Definition at line 583 of file build_industry.h.
|
static |
|
static |
Definition at line 631 of file build_industry.h.
|
static |
Definition at line 612 of file build_industry.h.
|
static |
Definition at line 790 of file build_industry.h.
|
static |
|
static |
Definition at line 225 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 291 of file build_industry.h.
|
static |
Definition at line 494 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 560 of file build_industry.h.
|
static |
|
static |
Definition at line 972 of file build_industry.h.
|
static |
Definition at line 960 of file build_industry.h.
|
static |
Definition at line 966 of file build_industry.h.
|
static |
Definition at line 104 of file build_industry.h.
|
static |
|
static |
|
static |
|
static |
Definition at line 360 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 685 of file build_industry.h.
|
static |
Definition at line 662 of file build_industry.h.
|
static |
Definition at line 132 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 397 of file build_industry.h.
|
static |
|
static |
|
static |
Definition at line 1028 of file build_industry.h.
|
static |
|
static |
Definition at line 1013 of file build_industry.h.
|
static |
Definition at line 1007 of file build_industry.h.
|
static |
Definition at line 956 of file build_industry.h.
|
static |
|
static |
Definition at line 941 of file build_industry.h.
|
static |
|
static |
Definition at line 696 of file build_industry.h.
|
static |
|
static |
Definition at line 704 of file build_industry.h.
|
static |
Definition at line 700 of file build_industry.h.