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