15 typedef uint16_t TownID;
31 static constexpr
int RATING_MINIMUM = -1000;
32 static constexpr
int RATING_APPALLING = -400;
33 static constexpr
int RATING_VERYPOOR = -200;
34 static constexpr
int RATING_POOR = 0;
35 static constexpr
int RATING_MEDIOCRE = 200;
36 static constexpr
int RATING_GOOD = 400;
37 static constexpr
int RATING_VERYGOOD = 600;
38 static constexpr
int RATING_EXCELLENT = 800;
46 static constexpr
int RATING_TREE_DOWN_STEP = -35;
47 static constexpr
int RATING_TREE_MINIMUM = RATING_MINIMUM;
48 static constexpr
int RATING_TREE_UP_STEP = 7;
49 static constexpr
int RATING_TREE_MAXIMUM = 220;
72 static constexpr
int RATING_HOUSE_MINIMUM = RATING_MINIMUM;
74 static constexpr
int RATING_BRIBE_UP_STEP = 200;
75 static constexpr
int RATING_BRIBE_MAXIMUM = 800;
76 static constexpr
int RATING_BRIBE_DOWN_TO = -50;
112 template <
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.
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