src/economy_func.h
changeset 8615 6b91ca653bad
parent 8612 6414fc21c2f3
child 8617 931e0970d509
equal deleted inserted replaced
8614:21126f54f5c8 8615:6b91ca653bad
     4 
     4 
     5 #ifndef ECONOMY_FUNC_H
     5 #ifndef ECONOMY_FUNC_H
     6 #define ECONOMY_FUNC_H
     6 #define ECONOMY_FUNC_H
     7 
     7 
     8 #include "economy_type.h"
     8 #include "economy_type.h"
       
     9 #include "cargo_type.h"
       
    10 #include "vehicle_type.h"
     9 
    11 
    10 struct Player;
    12 struct Player;
    11 
    13 
    12 void ResetPriceBaseMultipliers();
    14 void ResetPriceBaseMultipliers();
    13 void SetPriceBaseMultiplier(uint price, byte factor);
    15 void SetPriceBaseMultiplier(uint price, byte factor);
    17 extern Economy _economy;
    19 extern Economy _economy;
    18 extern Subsidy _subsidies[MAX_PLAYERS];
    20 extern Subsidy _subsidies[MAX_PLAYERS];
    19 /* Prices and also the fractional part. */
    21 /* Prices and also the fractional part. */
    20 extern Prices _price;
    22 extern Prices _price;
    21 extern uint16 _price_frac[NUM_PRICES];
    23 extern uint16 _price_frac[NUM_PRICES];
       
    24 extern Money  _cargo_payment_rates[NUM_CARGO];
       
    25 extern uint16 _cargo_payment_rates_frac[NUM_CARGO];
    22 
    26 
    23 int UpdateCompanyRatingAndValue(Player *p, bool update);
    27 int UpdateCompanyRatingAndValue(Player *p, bool update);
    24 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
    28 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
    25 void DeleteSubsidyWithTown(TownID index);
    29 void DeleteSubsidyWithTown(TownID index);
    26 void DeleteSubsidyWithIndustry(IndustryID index);
    30 void DeleteSubsidyWithIndustry(IndustryID index);