author | truebrain |
Thu, 12 Jun 2008 21:18:09 +0000 | |
branch | noai |
changeset 10944 | 588393239ac6 |
parent 9837 | c9ec4f82e0d0 |
permissions | -rw-r--r-- |
9723 | 1 |
/* $Id$ */ |
2 |
||
3 |
/** @file economy_func.h Functions related to the economy. */ |
|
4 |
||
5 |
#ifndef ECONOMY_FUNC_H |
|
6 |
#define ECONOMY_FUNC_H |
|
7 |
||
8 |
#include "core/geometry_type.hpp" |
|
9 |
#include "economy_type.h" |
|
10 |
#include "cargo_type.h" |
|
11 |
#include "vehicle_type.h" |
|
12 |
#include "tile_type.h" |
|
13 |
#include "town_type.h" |
|
14 |
#include "industry_type.h" |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9723
diff
changeset
|
15 |
#include "player_type.h" |
9837
c9ec4f82e0d0
(svn r12503) [NoAI] -Sync: with trunk r12461:12501.
rubidium
parents:
9732
diff
changeset
|
16 |
#include "station_type.h" |
9723 | 17 |
|
18 |
struct Player; |
|
19 |
||
20 |
void ResetPriceBaseMultipliers(); |
|
21 |
void SetPriceBaseMultiplier(uint price, byte factor); |
|
22 |
||
23 |
extern const ScoreInfo _score_info[]; |
|
24 |
extern int _score_part[MAX_PLAYERS][SCORE_END]; |
|
25 |
extern Economy _economy; |
|
26 |
extern Subsidy _subsidies[MAX_PLAYERS]; |
|
27 |
/* Prices and also the fractional part. */ |
|
28 |
extern Prices _price; |
|
29 |
extern uint16 _price_frac[NUM_PRICES]; |
|
30 |
extern Money _cargo_payment_rates[NUM_CARGO]; |
|
31 |
extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; |
|
32 |
||
33 |
int UpdateCompanyRatingAndValue(Player *p, bool update); |
|
34 |
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
|
35 |
void DeleteSubsidyWithTown(TownID index); |
|
36 |
void DeleteSubsidyWithIndustry(IndustryID index); |
|
37 |
void DeleteSubsidyWithStation(StationID index); |
|
38 |
||
39 |
Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); |
|
40 |
uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount); |
|
41 |
||
42 |
void VehiclePayment(Vehicle *front_v); |
|
43 |
void LoadUnloadStation(Station *st); |
|
44 |
||
9732 | 45 |
Money GetPriceByIndex(uint8 index); |
46 |
||
9723 | 47 |
#endif /* ECONOMY_FUNC_H */ |