12 #ifndef ECONOMY_TYPE_H 13 #define ECONOMY_TYPE_H 78 PR_BUILD_STATION_RAIL,
79 PR_BUILD_STATION_RAIL_LENGTH,
80 PR_BUILD_STATION_AIRPORT,
82 PR_BUILD_STATION_TRUCK,
83 PR_BUILD_STATION_DOCK,
84 PR_BUILD_VEHICLE_TRAIN,
85 PR_BUILD_VEHICLE_WAGON,
86 PR_BUILD_VEHICLE_AIRCRAFT,
87 PR_BUILD_VEHICLE_ROAD,
88 PR_BUILD_VEHICLE_SHIP,
104 PR_CLEAR_STATION_RAIL,
105 PR_CLEAR_STATION_AIRPORT,
106 PR_CLEAR_STATION_BUS,
107 PR_CLEAR_STATION_TRUCK,
108 PR_CLEAR_STATION_DOCK,
111 PR_RUNNING_TRAIN_STEAM,
112 PR_RUNNING_TRAIN_DIESEL,
113 PR_RUNNING_TRAIN_ELECTRIC,
121 PR_BUILD_WAYPOINT_RAIL,
122 PR_CLEAR_WAYPOINT_RAIL,
123 PR_BUILD_WAYPOINT_BUOY,
124 PR_CLEAR_WAYPOINT_BUOY,
127 PR_BUILD_INDUSTRY_RAW,
135 PR_INFRASTRUCTURE_RAIL,
136 PR_INFRASTRUCTURE_ROAD,
137 PR_INFRASTRUCTURE_WATER,
138 PR_INFRASTRUCTURE_STATION,
139 PR_INFRASTRUCTURE_AIRPORT,
147 typedef int8 PriceMultipliers[PR_END];
210 static const int MAX_PRICE_MODIFIER = 16;
221 typedef uint32 CargoPaymentID;
Helper template class that makes basic properties of given enumeration type visible from outsize...
byte infl_amount_pr
inflation rate for payment rates
Money Prices[PR_END]
Prices of everything.
byte infl_amount
inflation amount
Money old_max_loan_unround
Old: Unrounded max loan.
Money start_price
Default value at game start, before adding multipliers.
static const uint LEVELCROSSING_TRACKBIT_FACTOR
Multiplier for how many regular track bits a level crossing counts.
uint16 old_max_loan_unround_fract
Old: Fraction of the unrounded max loan.
uint64 inflation_prices
Cumulated inflation of prices since game start; 16 bit fractional part.
byte interest_rate
Interest.
static const int LOAN_INTERVAL
The "steps" in loan size, in British Pounds!
PriceCategory category
Price is affected by certain difficulty settings.
An overflow safe integer-like type.
Price
Enumeration of all base prices for use with Prices.
This must always be the last entry.
static const int MIN_PRICE_MODIFIER
Maximum NewGRF price modifiers.
uint32 industry_daily_increment
The value which will increment industry_daily_change_counter. Computed value. NOSAVE.
Type (helpers) for enums.
How many scores are there..
Income from road vehicles.
Price is affected by "construction cost" difficulty setting.
Not affected by difficulty settings.
Informative template class exposing basic enumeration properties used by several other templates belo...
int score
How much score it will give.
static const uint TUNNELBRIDGE_TRACKBIT_FACTOR
Multiplier for how many regular track bits a tunnel/bridge counts.
ExpensesType
Types of expenses.
Helper class to perform the cargo payment.
In some cases we use byte or uint16 to store values that are defined as enum.
Money max_loan
NOSAVE: Maximum possible loan.
The max score that can be in the performance history.
Price fallback_price
Fallback price multiplier for new prices but old grfs.
Describes properties of price bases.
uint grf_feature
GRF Feature that decides whether price multipliers apply locally or globally, #GSF_END if none...
Running costs road vehicles.
static const uint64 MAX_INFLATION
Maximum inflation (including fractional part) without causing overflows in int64 price computations...
static const uint LOCK_DEPOT_TILE_FACTOR
Multiplier for how many regular tiles a lock counts.
uint32 industry_daily_change_counter
Bits 31-16 are number of industry to be performed, 15-0 are fractional collected daily.
int16 fluct
Economy fluctuation status.
uint64 inflation_payment
Cumulated inflation of cargo paypent since game start; 16 bit fractional part.
TinyEnumT< ExpensesType > ExpensesTypeByte
typedefing-enumification of ExpensesType
PriceCategory
Categories of a price bases.
ScoreID
Score categories in the detailed performance rating.
Price is affected by "vehicle running cost" difficulty setting.
Data structure for storing how the score is computed for a single score id.
int needed
How much you need to get the perfect score.
#define DECLARE_POSTFIX_INCREMENT(type)
Some enums need to have allowed incrementing (i.e.
Interest payments over the loan.