OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef ECONOMY_TYPE_H
11 #define ECONOMY_TYPE_H
85 PR_BUILD_STATION_RAIL,
86 PR_BUILD_STATION_RAIL_LENGTH,
87 PR_BUILD_STATION_AIRPORT,
89 PR_BUILD_STATION_TRUCK,
90 PR_BUILD_STATION_DOCK,
91 PR_BUILD_VEHICLE_TRAIN,
92 PR_BUILD_VEHICLE_WAGON,
93 PR_BUILD_VEHICLE_AIRCRAFT,
94 PR_BUILD_VEHICLE_ROAD,
95 PR_BUILD_VEHICLE_SHIP,
106 PR_CLEAR_DEPOT_TRAIN,
111 PR_CLEAR_STATION_RAIL,
112 PR_CLEAR_STATION_AIRPORT,
113 PR_CLEAR_STATION_BUS,
114 PR_CLEAR_STATION_TRUCK,
115 PR_CLEAR_STATION_DOCK,
118 PR_RUNNING_TRAIN_STEAM,
119 PR_RUNNING_TRAIN_DIESEL,
120 PR_RUNNING_TRAIN_ELECTRIC,
128 PR_BUILD_WAYPOINT_RAIL,
129 PR_CLEAR_WAYPOINT_RAIL,
130 PR_BUILD_WAYPOINT_BUOY,
131 PR_CLEAR_WAYPOINT_BUOY,
134 PR_BUILD_INDUSTRY_RAW,
142 PR_INFRASTRUCTURE_RAIL,
143 PR_INFRASTRUCTURE_ROAD,
144 PR_INFRASTRUCTURE_WATER,
145 PR_INFRASTRUCTURE_STATION,
146 PR_INFRASTRUCTURE_AIRPORT,
154 typedef int8 PriceMultipliers[PR_END];
218 static const int MAX_PRICE_MODIFIER = 16;
233 typedef uint32 CargoPaymentID;
uint64 inflation_prices
Cumulated inflation of prices since game start; 16 bit fractional part.
PriceCategory category
Price is affected by certain difficulty settings.
@ EXPENSES_ROADVEH_RUN
Running costs road vehicles.
@ INVALID_EXPENSES
Invalid expense type.
@ EXPENSES_END
Number of expense types.
uint64 inflation_payment
Cumulated inflation of cargo payment since game start; 16 bit fractional part.
@ SCORE_TOTAL
This must always be the last entry.
@ EXPENSES_OTHER
Other expenses.
static const int LOAN_INTERVAL
The "steps" in loan size, in British Pounds!
byte interest_rate
Interest.
uint32 industry_daily_change_counter
Bits 31-16 are number of industry to be performed, 15-0 are fractional collected daily.
static const uint LEVELCROSSING_TRACKBIT_FACTOR
Multiplier for how many regular track bits a level crossing counts.
Price
Enumeration of all base prices for use with Prices.
static const int64 INITIAL_LOAN
The size of loan for a new company, in British Pounds!
uint grf_feature
GRF Feature that decides whether price multipliers apply locally or globally, #GSF_END if none.
@ EXPENSES_AIRCRAFT_RUN
Running costs aircraft.
Money max_loan
NOSAVE: Maximum possible loan.
static const int MIN_PRICE_MODIFIER
Maximum NewGRF price modifiers.
@ PCAT_NONE
Not affected by difficulty settings.
int score
How much score it will give.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
uint32 industry_daily_increment
The value which will increment industry_daily_change_counter. Computed value. NOSAVE.
int16 fluct
Economy fluctuation status.
byte infl_amount_pr
inflation rate for payment rates
Informative template class exposing basic enumeration properties used by several other templates belo...
@ EXPENSES_CONSTRUCTION
Construction costs.
@ SCORE_END
How many scores are there..
Helper class to perform the cargo payment.
@ EXPENSES_SHIP_INC
Income from ships.
static const uint TUNNELBRIDGE_TRACKBIT_FACTOR
Multiplier for how many regular track bits a tunnel/bridge counts.
Price fallback_price
Fallback price multiplier for new prices but old grfs.
@ PCAT_CONSTRUCTION
Price is affected by "construction cost" difficulty setting.
@ EXPENSES_AIRCRAFT_INC
Income from aircraft.
@ EXPENSES_LOAN_INT
Interest payments over the loan.
Money start_price
Default value at game start, before adding multipliers.
@ SCORE_MAX
The max score that can be in the performance history.
Describes properties of price bases.
EconomyType
Type of the game economy.
static const uint ROAD_DEPOT_TRACKBIT_FACTOR
Multiplier for how many regular track bits a road depot counts.
static const uint64 MAX_INFLATION
Maximum inflation (including fractional part) without causing overflows in int64 price computations.
@ PCAT_RUNNING
Price is affected by "vehicle running cost" difficulty setting.
byte infl_amount
inflation amount
int needed
How much you need to get the perfect score.
Money old_max_loan_unround
Old: Unrounded max loan.
@ EXPENSES_PROPERTY
Property costs.
@ EXPENSES_NEW_VEHICLES
New vehicles.
Helper template class that makes basic properties of given enumeration type visible from outsize.
static const uint LOCK_DEPOT_TILE_FACTOR
Multiplier for how many regular tiles a lock counts.
ScoreID
Score categories in the detailed performance rating.
@ EXPENSES_TRAIN_RUN
Running costs trains.
static const uint ROAD_STOP_TRACKBIT_FACTOR
Multiplier for how many regular track bits a bay stop counts.
PriceCategory
Categories of a price bases.
ExpensesType
Types of expenses.
uint16 old_max_loan_unround_fract
Old: Fraction of the unrounded max loan.
@ EXPENSES_ROADVEH_INC
Income from road vehicles.
@ EXPENSES_SHIP_RUN
Running costs ships.
@ EXPENSES_TRAIN_INC
Income from trains.
Money Prices[PR_END]
Prices of everything.
Data structure for storing how the score is computed for a single score id.