economy_func.h
Go to the documentation of this file.00001
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 "player_type.h"
00016
00017 struct Player;
00018
00019 void ResetPriceBaseMultipliers();
00020 void SetPriceBaseMultiplier(uint price, byte factor);
00021
00022 extern const ScoreInfo _score_info[];
00023 extern int _score_part[MAX_PLAYERS][SCORE_END];
00024 extern Economy _economy;
00025 extern Subsidy _subsidies[MAX_PLAYERS];
00026
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(Player *p, 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
00038 Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type);
00039 uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount);
00040
00041 void VehiclePayment(Vehicle *front_v);
00042 void LoadUnloadStation(Station *st);
00043
00044 Money GetPriceByIndex(uint8 index);
00045
00046 #endif