author | glx |
Mon, 11 Feb 2008 18:08:09 +0000 | |
branch | noai |
changeset 9727 | a5fdea13a991 |
parent 9724 | b39bc69bb2f2 |
child 9732 | f8eb3e208514 |
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" |
9723 | 16 |
|
17 |
struct Player; |
|
18 |
||
19 |
void ResetPriceBaseMultipliers(); |
|
20 |
void SetPriceBaseMultiplier(uint price, byte factor); |
|
21 |
||
22 |
extern const ScoreInfo _score_info[]; |
|
23 |
extern int _score_part[MAX_PLAYERS][SCORE_END]; |
|
24 |
extern Economy _economy; |
|
25 |
extern Subsidy _subsidies[MAX_PLAYERS]; |
|
26 |
/* Prices and also the fractional part. */ |
|
27 |
extern Prices _price; |
|
28 |
extern uint16 _price_frac[NUM_PRICES]; |
|
29 |
extern Money _cargo_payment_rates[NUM_CARGO]; |
|
30 |
extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; |
|
31 |
||
32 |
int UpdateCompanyRatingAndValue(Player *p, bool update); |
|
33 |
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
|
34 |
void DeleteSubsidyWithTown(TownID index); |
|
35 |
void DeleteSubsidyWithIndustry(IndustryID index); |
|
36 |
void DeleteSubsidyWithStation(StationID index); |
|
37 |
||
38 |
Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); |
|
39 |
uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount); |
|
40 |
||
41 |
void VehiclePayment(Vehicle *front_v); |
|
42 |
void LoadUnloadStation(Station *st); |
|
43 |
||
44 |
#endif /* ECONOMY_FUNC_H */ |