17 typedef uint16 TownID;
34 RATING_MINIMUM = -1000,
35 RATING_APPALLING = -400,
36 RATING_VERYPOOR = -200,
38 RATING_MEDIOCRE = 200,
40 RATING_VERYGOOD = 600,
41 RATING_EXCELLENT = 800,
49 RATING_TREE_DOWN_STEP = -35,
50 RATING_TREE_MINIMUM = RATING_MINIMUM,
51 RATING_TREE_UP_STEP = 7,
52 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
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;
Helper template class that makes basic properties of given enumeration type visible from outsize...
SimpleTinyEnumT< TownFounding, byte > TownFoundingByte
It needs to be 8bits, because we save and load it as such.
Geometric 3x3 grid algorithm.
penalty for removing town owned tunnel or bridge
void NewMonth()
Update stats for a new month.
Tstorage new_act
Actually transported this month.
Type (helpers) for enums.
Used for iterations and limit testing.
SimpleTinyEnumT< TownLayout, byte > TownLayoutByte
It needs to be 8bits, because we save and load it as such.
TownSize
Supported initial town sizes.
Geometric 2x2 grid algorithm.
minimum rating after removing town owned road
rating needed, "Permissive" difficulty settings
when a town grows, all companies have rating increased a bit ...
Number of available town sizes.
Informative template class exposing basic enumeration properties used by several other templates belo...
rating needed, "Permissive" difficulty settings
... up to RATING_MEDIOCRE
Tstorage new_max
Maximum amount this month.
TownFounding
Town founding setting values.
removing a roadpiece at the edge
removing a roadpiece in the middle
Tstorage old_max
Maximum amount last month.
Random size, bigger than small, smaller than large.
Extended original algorithm (min. 2 distance between roads)
Used for iterations and limit testing.
Allowed, with custom town layout.
Store the maximum and actually transported cargo amount for the current and the last month...
Original algorithm (min. 1 distance between roads)
static const uint MAX_LENGTH_TOWN_NAME_CHARS
The maximum length of a town name in characters including '\0'.
when a town grows, company gains reputation for all well serviced stations ...
... but loses for bad serviced stations
minimum rating after removing tunnel or bridge
Tstorage old_act
Actually transported last month.