equal
deleted
inserted
replaced
|
1 #ifndef ECONOMY_H |
|
2 #define ECONOMY_H |
|
3 |
|
4 typedef struct { |
|
5 // Maximum possible loan |
|
6 int32 max_loan; |
|
7 int32 max_loan_unround; |
|
8 // Economy fluctuation status |
|
9 int fluct; |
|
10 // Interest |
|
11 byte interest_rate; |
|
12 byte infl_amount; |
|
13 byte infl_amount_pr; |
|
14 } Economy; |
|
15 |
|
16 VARDEF Economy _economy; |
|
17 |
|
18 typedef struct Subsidy { |
|
19 byte cargo_type; |
|
20 byte age; |
|
21 byte from; |
|
22 byte to; |
|
23 } Subsidy; |
|
24 |
|
25 |
|
26 VARDEF Subsidy _subsidies[MAX_PLAYERS]; |
|
27 Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode); |
|
28 void DeleteSubsidyWithIndustry(byte index); |
|
29 void DeleteSubsidyWithStation(byte index); |
|
30 |
|
31 int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, byte cargo_type); |
|
32 uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount); |
|
33 |
|
34 #endif /* ECONOMY_H */ |