13 #include "town_type.h" |
13 #include "town_type.h" |
14 #include "industry_type.h" |
14 #include "industry_type.h" |
15 #include "player_type.h" |
15 #include "player_type.h" |
16 #include "station_type.h" |
16 #include "station_type.h" |
17 |
17 |
18 struct Player; |
|
19 |
|
20 void ResetPriceBaseMultipliers(); |
18 void ResetPriceBaseMultipliers(); |
21 void SetPriceBaseMultiplier(uint price, byte factor); |
19 void SetPriceBaseMultiplier(uint price, byte factor); |
22 void ResetEconomy(); |
20 void ResetEconomy(); |
23 |
21 |
24 extern const ScoreInfo _score_info[]; |
22 extern const ScoreInfo _score_info[]; |
25 extern int _score_part[MAX_PLAYERS][SCORE_END]; |
23 extern int _score_part[MAX_COMPANIES][SCORE_END]; |
26 extern Economy _economy; |
24 extern Economy _economy; |
27 extern Subsidy _subsidies[MAX_PLAYERS]; |
25 extern Subsidy _subsidies[MAX_COMPANIES]; |
28 /* Prices and also the fractional part. */ |
26 /* Prices and also the fractional part. */ |
29 extern Prices _price; |
27 extern Prices _price; |
30 extern uint16 _price_frac[NUM_PRICES]; |
28 extern uint16 _price_frac[NUM_PRICES]; |
31 extern Money _cargo_payment_rates[NUM_CARGO]; |
29 extern Money _cargo_payment_rates[NUM_CARGO]; |
32 extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; |
30 extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; |
33 |
31 |
34 int UpdateCompanyRatingAndValue(Player *p, bool update); |
32 int UpdateCompanyRatingAndValue(Company *c, bool update); |
35 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
33 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
36 void DeleteSubsidyWithTown(TownID index); |
34 void DeleteSubsidyWithTown(TownID index); |
37 void DeleteSubsidyWithIndustry(IndustryID index); |
35 void DeleteSubsidyWithIndustry(IndustryID index); |
38 void DeleteSubsidyWithStation(StationID index); |
36 void DeleteSubsidyWithStation(StationID index); |
39 |
37 |