truelight@0: #ifndef ECONOMY_H truelight@0: #define ECONOMY_H truelight@0: truelight@0: typedef struct { truelight@0: // Maximum possible loan truelight@0: int32 max_loan; truelight@0: int32 max_loan_unround; truelight@0: // Economy fluctuation status truelight@0: int fluct; truelight@0: // Interest truelight@0: byte interest_rate; truelight@0: byte infl_amount; truelight@0: byte infl_amount_pr; truelight@0: } Economy; truelight@0: truelight@0: VARDEF Economy _economy; truelight@0: truelight@0: typedef struct Subsidy { truelight@0: byte cargo_type; truelight@0: byte age; truelight@0: byte from; truelight@0: byte to; truelight@0: } Subsidy; truelight@0: truelight@0: truelight@0: VARDEF Subsidy _subsidies[MAX_PLAYERS]; truelight@0: Pair SetupSubsidyDecodeParam(Subsidy *s, bool mode); truelight@0: void DeleteSubsidyWithIndustry(byte index); truelight@0: void DeleteSubsidyWithStation(byte index); truelight@0: truelight@0: int32 GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, byte cargo_type); truelight@0: uint MoveGoodsToStation(uint tile, int w, int h, int type, uint amount); truelight@0: truelight@0: #endif /* ECONOMY_H */