OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #ifndef ECONOMY_FUNC_H
11 #define ECONOMY_FUNC_H
31 Money GetTransportedGoodsIncome(uint num_pieces, uint dist,
byte transit_days,
CargoID cargo_type);
49 return _economy.
fluct <= 0;
Money GetPrice(Price index, uint cost_factor, const GRFFile *grf_file, int shift)
Determine a certain price.
void LoadUnloadStation(Station *st)
Load/unload the vehicles in this station according to the order they entered.
Price
Enumeration of all base prices for use with Prices.
void PrepareUnload(Vehicle *front_v)
Prepare the vehicle to be unloaded.
Owner
Enum for all companies/owners.
void ResetPriceBaseMultipliers()
Reset changes to the price base multipliers.
int16 fluct
Economy fluctuation status.
void InitializeEconomy()
Resets economy to initial values.
void StartupIndustryDailyChanges(bool init_counter)
Initialize the variables that will maintain the daily industry change system.
uint16 SourceID
Contains either industry ID, town ID or company ID (or INVALID_SOURCE)
@ SCORE_END
How many scores are there..
@ INVALID_OWNER
An invalid owner.
void SetPriceBaseMultiplier(Price price, int factor)
Change a price base by the given factor.
@ MAX_COMPANIES
Maximum number of companies.
const ScoreInfo _score_info[]
Score info, values used for computing the detailed performance rating.
std::set< Station *, StationCompare > StationList
List of stations.
static bool EconomyIsInRecession()
Is the economy in recession?
void RecomputePrices()
Computes all prices, payments and maximum loan.
SourceType
Types of cargo source and destination.
int UpdateCompanyRatingAndValue(Company *c, bool update)
if update is set to true, the economy is updated with this score (also the house is updated,...
byte CargoID
Cargo slots to indicate a cargo type within a game.
bool AddInflation(bool check_year=true)
Add monthly inflation.
Dynamic data of a loaded NewGRF.
Money Prices[PR_END]
Prices of everything.
Data structure for storing how the score is computed for a single score id.