diff options
author | truelight <truelight@openttd.org> | 2004-08-09 17:04:08 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-09 17:04:08 +0000 |
commit | efaeb275f78e18d594d9ee8ff04eccd2dc59512c (patch) | |
tree | bc8e1f56d77706d14d048cb2d99e53291930b520 /economy.h | |
download | openttd-efaeb275f78e18d594d9ee8ff04eccd2dc59512c.tar.xz |
(svn r1) Import of revision 975 of old (crashed) SVN
Diffstat (limited to 'economy.h')
-rw-r--r-- | economy.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/economy.h b/economy.h new file mode 100644 index 000000000..5ed2e9c70 --- /dev/null +++ b/economy.h @@ -0,0 +1,34 @@ +#ifndef ECONOMY_H +#define ECONOMY_H + +typedef struct { + // Maximum possible loan + int32 max_loan; + int32 max_loan_unround; + // Economy fluctuation status + int fluct; + // Interest + byte interest_rate; + byte infl_amount; + byte infl_amount_pr; +} Economy; + +VARDEF Economy _economy; + +typedef struct Subsidy { + byte cargo_type; + byte age; + byte from; + byte to; +} Subsidy; + + +VARDEF Subsidy _subsidies[MAX_PLAYERS]; +Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode); +void DeleteSubsidyWithIndustry(byte index); +void DeleteSubsidyWithStation(byte index); + +int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, byte cargo_type); +uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount); + +#endif /* ECONOMY_H */ |