# economy_func.h

Go to the documentation of this file.

    00001 /* $Id: economy_func.h 16742 2009-07-04 17:39:00Z rubidium $ */
    00002
    00005 #ifndef ECONOMY_FUNC_H
    00006 #define ECONOMY_FUNC_H
    00007
    00008 #include "core/geometry_type.hpp"
    00009 #include "economy_type.h"
    00010 #include "cargo_type.h"
    00011 #include "vehicle_type.h"
    00012 #include "tile_type.h"
    00013 #include "town_type.h"
    00014 #include "industry_type.h"
    00015 #include "company_type.h"
    00016 #include "station_type.h"
    00017
    00018 void ResetPriceBaseMultipliers();
    00019 void SetPriceBaseMultiplier(uint price, byte factor);
    00020 void ResetEconomy();
    00021
    00022 extern const ScoreInfo _score_info[];
    00023 extern int _score_part[MAX_COMPANIES][SCORE_END];
    00024 extern Economy _economy;
    00025 extern Subsidy _subsidies[MAX_COMPANIES];
    00026 /* Prices and also the fractional part. */
    00027 extern Prices _price;
    00028 extern uint16 _price_frac[NUM_PRICES];
    00029 extern Money  _cargo_payment_rates[NUM_CARGO];
    00030 extern uint16 _cargo_payment_rates_frac[NUM_CARGO];
    00031
    00032 int UpdateCompanyRatingAndValue(Company *c, bool update);
    00033 Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
    00034 void DeleteSubsidyWithTown(TownID index);
    00035 void DeleteSubsidyWithIndustry(IndustryID index);
    00036 void DeleteSubsidyWithStation(StationID index);
    00037 void StartupIndustryDailyChanges(bool init_counter);
    00038
    00039 Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type);
    00040 uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount);
    00041
    00042 void PrepareUnload(Vehicle *front_v);
    00043 void LoadUnloadStation(Station *st);
    00044
    00045 Money GetPriceByIndex(uint8 index);
    00046
    00047 #endif /* ECONOMY_FUNC_H */