OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
15 typedef uint16 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,
70 RATING_HOUSE_MINIMUM = RATING_MINIMUM,
72 RATING_BRIBE_UP_STEP = 200,
73 RATING_BRIBE_MAXIMUM = 800,
74 RATING_BRIBE_DOWN_TO = -50
111 template <
typename Tstorage>
123 this->old_max = this->
new_max; this->new_max = 0;
124 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"
TownCargoGenMode
Town cargo generation modes.
@ RATING_TUNNEL_BRIDGE_MINIMUM
minimum rating after removing tunnel or bridge
@ TL_RANDOM
Random town layout.
TownSize
Supported initial town sizes.
@ 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.
@ RATING_INITIAL
initial rating
@ TF_CUSTOM_LAYOUT
Allowed, with custom town layout.
TownFounding
Town founding setting values.
Informative template class exposing basic enumeration properties used by several other templates belo...
@ TL_BETTER_ROADS
Extended original algorithm (min. 2 distance between roads)
@ TF_BEGIN
Used for iterations and limit testing.
@ RATING_ROAD_NEEDED_HOSTILE
"Hostile"
@ TF_END
Used for iterations and limit testing.
@ TSZ_END
Number of available town sizes.
@ TL_3X3_GRID
Geometric 3x3 grid algorithm.
@ RATING_ROAD_MINIMUM
minimum rating after removing town owned road
@ TSZ_RANDOM
Random size, bigger than small, smaller than large.
@ RATING_ROAD_NEEDED_NEUTRAL
"Neutral"
@ RATING_ROAD_NEEDED_PERMISSIVE
rating needed, "Permissive" difficulty settings
Tstorage new_max
Maximum amount this month.
Tstorage old_max
Maximum amount last month.
@ TCGM_BITCOUNT
Bit-counted algorithm (normal distribution from individual house population)
Tstorage new_act
Actually transported this month.
@ RATING_TUNNEL_BRIDGE_NEEDED_PERMISSIVE
rating needed, "Permissive" difficulty settings
@ 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
Helper template class that makes basic properties of given enumeration type visible from outsize.
@ RATING_OUTSTANDING
OUTSTANDING.
@ RATING_ROAD_DOWN_STEP_INNER
removing a roadpiece in the middle
@ TL_ORIGINAL
Original algorithm (min. 1 distance between roads)
@ NUM_TLS
Number of town layouts.
static const uint MAX_LENGTH_TOWN_NAME_CHARS
The maximum length of a town name in characters including '\0'.
@ TL_2X2_GRID
Geometric 2x2 grid algorithm.
@ 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.
@ RATING_TUNNEL_BRIDGE_NEEDED_NEUTRAL
"Neutral"