author | peter1138 |
Sun, 03 Aug 2008 17:35:08 +0000 | |
changeset 9834 | 7474149531c1 |
parent 9717 | b7806a165a75 |
child 10207 | c291a21b304e |
permissions | -rw-r--r-- |
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
1 |
/* $Id$ */ |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
2 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
3 |
/** @file economy_func.h Functions related to the economy. */ |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
4 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
5 |
#ifndef ECONOMY_FUNC_H |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
6 |
#define ECONOMY_FUNC_H |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
7 |
|
8121
3bc6351e7369
(svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type.
rubidium
parents:
8119
diff
changeset
|
8 |
#include "core/geometry_type.hpp" |
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
9 |
#include "economy_type.h" |
8119
52b48108425a
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
8116
diff
changeset
|
10 |
#include "cargo_type.h" |
52b48108425a
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
8116
diff
changeset
|
11 |
#include "vehicle_type.h" |
8138
dbfdc08fa6b9
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
rubidium
parents:
8121
diff
changeset
|
12 |
#include "tile_type.h" |
8213
7bdd7593eb9b
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium
parents:
8138
diff
changeset
|
13 |
#include "town_type.h" |
7bdd7593eb9b
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
rubidium
parents:
8138
diff
changeset
|
14 |
#include "industry_type.h" |
8254
1496654ca5e7
(svn r11818) -Codechange: split player.h into smaller pieces.
rubidium
parents:
8213
diff
changeset
|
15 |
#include "player_type.h" |
8769
b554c4996eb1
(svn r12468) -Codechange: move some type related stuff from station.h (and openttd.h) to station_type.h.
rubidium
parents:
8626
diff
changeset
|
16 |
#include "station_type.h" |
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
17 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
18 |
struct Player; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
19 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
20 |
void ResetPriceBaseMultipliers(); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
21 |
void SetPriceBaseMultiplier(uint price, byte factor); |
9717
b7806a165a75
(svn r13836) -Fix [FS#2074]: Automatically recalculate inflation if NewGRFs are changed and cargo types are added, so that cargo payment rates are correct.
peter1138
parents:
8769
diff
changeset
|
22 |
void ResetEconomy(); |
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
23 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
24 |
extern const ScoreInfo _score_info[]; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
25 |
extern int _score_part[MAX_PLAYERS][SCORE_END]; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
26 |
extern Economy _economy; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
27 |
extern Subsidy _subsidies[MAX_PLAYERS]; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
28 |
/* Prices and also the fractional part. */ |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
29 |
extern Prices _price; |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
30 |
extern uint16 _price_frac[NUM_PRICES]; |
8119
52b48108425a
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
8116
diff
changeset
|
31 |
extern Money _cargo_payment_rates[NUM_CARGO]; |
52b48108425a
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
rubidium
parents:
8116
diff
changeset
|
32 |
extern uint16 _cargo_payment_rates_frac[NUM_CARGO]; |
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
33 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
34 |
int UpdateCompanyRatingAndValue(Player *p, bool update); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
35 |
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
36 |
void DeleteSubsidyWithTown(TownID index); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
37 |
void DeleteSubsidyWithIndustry(IndustryID index); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
38 |
void DeleteSubsidyWithStation(StationID index); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
39 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
40 |
Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
41 |
uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
42 |
|
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
43 |
void VehiclePayment(Vehicle *front_v); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
44 |
void LoadUnloadStation(Station *st); |
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
45 |
|
8626
9781464622be
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
peter1138
parents:
8254
diff
changeset
|
46 |
Money GetPriceByIndex(uint8 index); |
9781464622be
(svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it.
peter1138
parents:
8254
diff
changeset
|
47 |
|
8116
8da76dcb3287
(svn r11677) -Codechange: move price and command related types/functions to their respective places.
rubidium
parents:
diff
changeset
|
48 |
#endif /* ECONOMY_FUNC_H */ |