10 #ifndef ECONOMY_TYPE_H
11 #define ECONOMY_TYPE_H
100 PR_BUILD_STATION_RAIL,
101 PR_BUILD_STATION_RAIL_LENGTH,
102 PR_BUILD_STATION_AIRPORT,
103 PR_BUILD_STATION_BUS,
104 PR_BUILD_STATION_TRUCK,
105 PR_BUILD_STATION_DOCK,
106 PR_BUILD_VEHICLE_TRAIN,
107 PR_BUILD_VEHICLE_WAGON,
108 PR_BUILD_VEHICLE_AIRCRAFT,
109 PR_BUILD_VEHICLE_ROAD,
110 PR_BUILD_VEHICLE_SHIP,
121 PR_CLEAR_DEPOT_TRAIN,
126 PR_CLEAR_STATION_RAIL,
127 PR_CLEAR_STATION_AIRPORT,
128 PR_CLEAR_STATION_BUS,
129 PR_CLEAR_STATION_TRUCK,
130 PR_CLEAR_STATION_DOCK,
133 PR_RUNNING_TRAIN_STEAM,
134 PR_RUNNING_TRAIN_DIESEL,
135 PR_RUNNING_TRAIN_ELECTRIC,
143 PR_BUILD_WAYPOINT_RAIL,
144 PR_CLEAR_WAYPOINT_RAIL,
145 PR_BUILD_WAYPOINT_BUOY,
146 PR_CLEAR_WAYPOINT_BUOY,
149 PR_BUILD_INDUSTRY_RAW,
157 PR_INFRASTRUCTURE_RAIL,
158 PR_INFRASTRUCTURE_ROAD,
159 PR_INFRASTRUCTURE_WATER,
160 PR_INFRASTRUCTURE_STATION,
161 PR_INFRASTRUCTURE_AIRPORT,
169 typedef int8_t PriceMultipliers[PR_END];
237 static const int MAX_PRICE_MODIFIER = 16;
252 typedef uint32_t CargoPaymentID;
ScoreID
Score categories in the detailed performance rating.
@ SCORE_END
How many scores are there..
@ SCORE_MAX
The max score that can be in the performance history.
@ SCORE_TOTAL
This must always be the last entry.
static const uint LOCK_DEPOT_TILE_FACTOR
Multiplier for how many regular tiles a lock counts.
static const uint LEVELCROSSING_TRACKBIT_FACTOR
Multiplier for how many regular track bits a level crossing counts.
static const int64_t MAX_LOAN_LIMIT
The max amount possible to configure for a max loan of a company.
EconomyType
Type of the game economy.
static const int MIN_PRICE_MODIFIER
Maximum NewGRF price modifiers.
static const uint ROAD_STOP_TRACKBIT_FACTOR
Multiplier for how many regular track bits a bay stop counts.
static const uint ROAD_DEPOT_TRACKBIT_FACTOR
Multiplier for how many regular track bits a road depot counts.
std::array< Money, EXPENSES_END > Expenses
Data type for storage of Money for each ExpensesType category.
ExpensesType
Types of expenses.
@ EXPENSES_ROADVEH_RUN
Running costs road vehicles.
@ EXPENSES_END
Number of expense types.
@ EXPENSES_TRAIN_RUN
Running costs trains.
@ EXPENSES_AIRCRAFT_REVENUE
Revenue from aircraft.
@ EXPENSES_CONSTRUCTION
Construction costs.
@ EXPENSES_AIRCRAFT_RUN
Running costs aircraft.
@ EXPENSES_ROADVEH_REVENUE
Revenue from road vehicles.
@ EXPENSES_PROPERTY
Property costs.
@ EXPENSES_OTHER
Other expenses.
@ EXPENSES_SHIP_REVENUE
Revenue from ships.
@ EXPENSES_LOAN_INTEREST
Interest payments over the loan.
@ EXPENSES_TRAIN_REVENUE
Revenue from trains.
@ EXPENSES_SHIP_RUN
Running costs ships.
@ INVALID_EXPENSES
Invalid expense type.
@ EXPENSES_NEW_VEHICLES
New vehicles.
Money Prices[PR_END]
Prices of everything.
Price
Enumeration of all base prices for use with Prices.
static const int LOAN_INTERVAL
The "steps" in loan size, in British Pounds!
static const uint TUNNELBRIDGE_TRACKBIT_FACTOR
Multiplier for how many regular track bits a tunnel/bridge counts.
static const int MIN_CARGO_SCALE
Minimum allowed value of town_cargo_scale/industry_cargo_scale.
static const int64_t INITIAL_LOAN
The size of loan for a new company, in British Pounds!
static const uint64_t MAX_INFLATION
Maximum inflation (including fractional part) without causing overflows in int64_t price computations...
static const int MAX_CARGO_SCALE
Maximum allowed value of town_cargo_scale/industry_cargo_scale.
PriceCategory
Categories of a price bases.
@ PCAT_RUNNING
Price is affected by "vehicle running cost" difficulty setting.
@ PCAT_CONSTRUCTION
Price is affected by "construction cost" difficulty setting.
@ PCAT_NONE
Not affected by difficulty settings.
static const int DEF_CARGO_SCALE
Default value of town_cargo_scale/industry_cargo_scale.
Type (helpers) for enums.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
An overflow safe integer-like type.
Helper class to perform the cargo payment.
uint64_t inflation_payment
Cumulated inflation of cargo payment since game start; 16 bit fractional part.
uint8_t infl_amount
inflation amount
uint64_t inflation_prices
Cumulated inflation of prices since game start; 16 bit fractional part.
Money old_max_loan_unround
Old: Unrounded max loan.
int16_t fluct
Economy fluctuation status.
uint8_t infl_amount_pr
inflation rate for payment rates
uint32_t industry_daily_change_counter
Bits 31-16 are number of industry to be performed, 15-0 are fractional collected daily.
uint32_t industry_daily_increment
The value which will increment industry_daily_change_counter. Computed value. NOSAVE.
uint16_t old_max_loan_unround_fract
Old: Fraction of the unrounded max loan.
Money max_loan
NOSAVE: Maximum possible loan.
uint8_t interest_rate
Interest.
Describes properties of price bases.
Price fallback_price
Fallback price multiplier for new prices but old grfs.
PriceCategory category
Price is affected by certain difficulty settings.
Money start_price
Default value at game start, before adding multipliers.
uint grf_feature
GRF Feature that decides whether price multipliers apply locally or globally, #GSF_END if none.
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.
int score
How much score it will give.