|
OpenTTD Source 20251104-master-g3befbdd52f
|
Data of the economy. More...
#include <economy_type.h>
Data Fields | |
| Money | max_loan |
| NOSAVE: Maximum possible loan. | |
| int16_t | fluct |
| Economy fluctuation status. | |
| uint8_t | interest_rate |
| Interest. | |
| uint8_t | infl_amount |
| inflation amount | |
| 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. | |
| uint64_t | inflation_prices |
| Cumulated inflation of prices since game start; 16 bit fractional part. | |
| uint64_t | inflation_payment |
| Cumulated inflation of cargo payment since game start; 16 bit fractional part. | |
| Money | old_max_loan_unround |
| Old: Unrounded max loan. | |
| uint16_t | old_max_loan_unround_fract |
| Old: Fraction of the unrounded max loan. | |
Data of the economy.
Definition at line 44 of file economy_type.h.
| int16_t Economy::fluct |
Economy fluctuation status.
Definition at line 46 of file economy_type.h.
Referenced by EconomyIsInRecession().
| uint32_t Economy::industry_daily_change_counter |
Bits 31-16 are number of industry to be performed, 15-0 are fractional collected daily.
Definition at line 50 of file economy_type.h.
Referenced by StartupIndustryDailyChanges().
| uint32_t Economy::industry_daily_increment |
The value which will increment industry_daily_change_counter. Computed value. NOSAVE.
Definition at line 51 of file economy_type.h.
Referenced by StartupIndustryDailyChanges().
| uint8_t Economy::infl_amount |
| uint8_t Economy::infl_amount_pr |
inflation rate for payment rates
Definition at line 49 of file economy_type.h.
Referenced by AddInflation().
| uint64_t Economy::inflation_payment |
Cumulated inflation of cargo payment since game start; 16 bit fractional part.
Definition at line 53 of file economy_type.h.
Referenced by AddInflation(), AfterLoadGame(), InitializeEconomy(), and RecomputePrices().
| uint64_t Economy::inflation_prices |
Cumulated inflation of prices since game start; 16 bit fractional part.
Definition at line 52 of file economy_type.h.
Referenced by AddInflation(), AfterLoadGame(), DoStartupNewCompany(), InitializeEconomy(), and RecomputePrices().
| uint8_t Economy::interest_rate |
| Money Economy::max_loan |
NOSAVE: Maximum possible loan.
Definition at line 45 of file economy_type.h.
Referenced by DoStartupNewCompany(), Company::GetMaxLoan(), and RecomputePrices().
| Money Economy::old_max_loan_unround |
Old: Unrounded max loan.
Definition at line 56 of file economy_type.h.
Referenced by AfterLoadGame().
| uint16_t Economy::old_max_loan_unround_fract |
Old: Fraction of the unrounded max loan.
Definition at line 57 of file economy_type.h.
Referenced by AfterLoadGame().