OpenTTD Source
20240519-master-g46d7586ab1
|
Go to the documentation of this file.
15 typedef uint16_t TownID;
32 RATING_MINIMUM = -1000,
33 RATING_APPALLING = -400,
34 RATING_VERYPOOR = -200,
36 RATING_MEDIOCRE = 200,
38 RATING_VERYGOOD = 600,
39 RATING_EXCELLENT = 800,
47 RATING_TREE_DOWN_STEP = -35,
48 RATING_TREE_MINIMUM = RATING_MINIMUM,
49 RATING_TREE_UP_STEP = 7,
50 RATING_TREE_MAXIMUM = 220,
72 RATING_HOUSE_MINIMUM = RATING_MINIMUM,
74 RATING_BRIBE_UP_STEP = 200,
75 RATING_BRIBE_MAXIMUM = 800,
76 RATING_BRIBE_DOWN_TO = -50
113 template <
typename Tstorage>
125 this->old_max = this->
new_max; this->new_max = 0;
126 this->old_act = this->
new_act; this->new_act = 0;
@ RATING_STATION_UP_STEP
when a town grows, company gains reputation for all well serviced stations ...
@ RATING_STATION_DOWN_STEP
... but loses for badly serviced stations
@ RATING_TUNNEL_BRIDGE_NEEDED_HOSTILE
"Hostile"
TownSize
Supported initial town sizes.
TownFounding
Town founding setting values.
@ RATING_TUNNEL_BRIDGE_MINIMUM
minimum rating after removing tunnel or bridge
@ TF_BEGIN
Used for iterations and limit testing.
@ TL_ORIGINAL
Original algorithm (min. 1 distance between roads)
@ TCGM_ORIGINAL
Original algorithm (quadratic cargo by population)
@ RATING_GROWTH_UP_STEP
when a town grows, all companies have rating increased a bit ...
void NewMonth()
Update stats for a new month.
TownCargoGenMode
Town cargo generation modes.
@ RATING_INITIAL
initial rating
@ TSZ_END
Number of available town sizes.
@ TL_RANDOM
Random town layout.
@ NUM_TLS
Number of town layouts.
@ RATING_ROAD_NEEDED_HOSTILE
"Hostile"
@ RATING_TUNNEL_BRIDGE_NEEDED_LENIENT
rating needed, "Lenient" difficulty settings
@ RATING_ROAD_MINIMUM
minimum rating after removing town owned road
@ RATING_ROAD_NEEDED_NEUTRAL
"Neutral"
#define DECLARE_ENUM_AS_ADDABLE(EnumType)
Operator that allows this enumeration to be added to any other enumeration.
@ RATING_ROAD_NEEDED_PERMISSIVE
"Permissive" (local authority disabled)
Tstorage new_max
Maximum amount this month.
Tstorage old_max
Maximum amount last month.
Tstorage new_act
Actually transported this month.
@ RATING_TUNNEL_BRIDGE_NEEDED_PERMISSIVE
"Permissive" (local authority disabled)
@ TCGM_BITCOUNT
Bit-counted algorithm (normal distribution from individual house population)
@ TL_BETTER_ROADS
Extended original algorithm (min. 2 distance between roads)
@ RATING_GROWTH_MAXIMUM
... up to RATING_MEDIOCRE
Tstorage old_act
Actually transported last month.
@ RATING_ROAD_DOWN_STEP_EDGE
removing a roadpiece at the edge
@ RATING_OUTSTANDING
OUTSTANDING.
@ RATING_ROAD_DOWN_STEP_INNER
removing a roadpiece in the middle
@ TF_CUSTOM_LAYOUT
Allowed, with custom town layout.
@ TL_3X3_GRID
Geometric 3x3 grid algorithm.
@ TL_2X2_GRID
Geometric 2x2 grid algorithm.
static const uint MAX_LENGTH_TOWN_NAME_CHARS
The maximum length of a town name in characters including '\0'.
@ TSZ_RANDOM
Random size, bigger than small, smaller than large.
@ RATING_ROAD_NEEDED_LENIENT
rating needed, "Lenient" difficulty settings
@ RATING_TUNNEL_BRIDGE_DOWN_STEP
penalty for removing town owned tunnel or bridge
Store the maximum and actually transported cargo amount for the current and the last month.
@ TF_END
Used for iterations and limit testing.
@ RATING_TUNNEL_BRIDGE_NEEDED_NEUTRAL
"Neutral"