equal
deleted
inserted
replaced
|
1 /* $Id$ */ |
|
2 |
|
3 /** @file economy_func.h Functions related to the economy. */ |
|
4 |
|
5 #ifndef ECONOMY_FUNC_H |
|
6 #define ECONOMY_FUNC_H |
|
7 |
|
8 #include "economy_type.h" |
|
9 |
|
10 struct Player; |
|
11 |
|
12 void ResetPriceBaseMultipliers(); |
|
13 void SetPriceBaseMultiplier(uint price, byte factor); |
|
14 |
|
15 extern const ScoreInfo _score_info[]; |
|
16 extern int _score_part[MAX_PLAYERS][SCORE_END]; |
|
17 extern Economy _economy; |
|
18 extern Subsidy _subsidies[MAX_PLAYERS]; |
|
19 /* Prices and also the fractional part. */ |
|
20 extern Prices _price; |
|
21 extern uint16 _price_frac[NUM_PRICES]; |
|
22 |
|
23 int UpdateCompanyRatingAndValue(Player *p, bool update); |
|
24 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
|
25 void DeleteSubsidyWithTown(TownID index); |
|
26 void DeleteSubsidyWithIndustry(IndustryID index); |
|
27 void DeleteSubsidyWithStation(StationID index); |
|
28 |
|
29 Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); |
|
30 uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount); |
|
31 |
|
32 void VehiclePayment(Vehicle *front_v); |
|
33 void LoadUnloadStation(Station *st); |
|
34 |
|
35 #endif /* ECONOMY_FUNC_H */ |