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