12
12
#include "tile_type.h"
13
13
#include "town_type.h"
14
14
#include "industry_type.h"
15
#include "player_type.h"
15
#include "company_type.h"
16
#include "station_type.h"
19
18
void ResetPriceBaseMultipliers();
20
19
void SetPriceBaseMultiplier(uint price, byte factor);
22
22
extern const ScoreInfo _score_info[];
23
extern int _score_part[MAX_PLAYERS][SCORE_END];
23
extern int _score_part[MAX_COMPANIES][SCORE_END];
24
24
extern Economy _economy;
25
extern Subsidy _subsidies[MAX_PLAYERS];
25
extern Subsidy _subsidies[MAX_COMPANIES];
26
26
/* Prices and also the fractional part. */
27
27
extern Prices _price;
28
28
extern uint16 _price_frac[NUM_PRICES];
29
29
extern Money _cargo_payment_rates[NUM_CARGO];
30
30
extern uint16 _cargo_payment_rates_frac[NUM_CARGO];
32
int UpdateCompanyRatingAndValue(Player *p, bool update);
32
int UpdateCompanyRatingAndValue(Company *c, bool update);
33
33
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
34
34
void DeleteSubsidyWithTown(TownID index);
35
35
void DeleteSubsidyWithIndustry(IndustryID index);
36
36
void DeleteSubsidyWithStation(StationID index);
37
void StartupIndustryDailyChanges(bool init_counter);
38
39
Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type);
39
40
uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount);