~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/economy_func.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: economy_func.h 12209 2008-02-21 19:09:10Z peter1138 $ */
 
1
/* $Id: economy_func.h 14828 2009-01-04 15:32:25Z smatz $ */
2
2
 
3
3
/** @file economy_func.h Functions related to the economy. */
4
4
 
12
12
#include "tile_type.h"
13
13
#include "town_type.h"
14
14
#include "industry_type.h"
15
 
#include "player_type.h"
16
 
 
17
 
struct Player;
 
15
#include "company_type.h"
 
16
#include "station_type.h"
18
17
 
19
18
void ResetPriceBaseMultipliers();
20
19
void SetPriceBaseMultiplier(uint price, byte factor);
 
20
void ResetEconomy();
21
21
 
22
22
extern const ScoreInfo _score_info[];
23
 
extern int _score_part[MAX_PLAYERS][SCORE_END];
 
23
extern int _score_part[MAX_COMPANIES][SCORE_END];
24
24
extern Economy _economy;
25
 
extern Subsidy _subsidies[MAX_PLAYERS];
 
25
extern Subsidy _subsidies[MAX_COMPANIES];
26
26
/* Prices and also the fractional part. */
27
27
extern Prices _price;
28
28
extern uint16 _price_frac[NUM_PRICES];
29
29
extern Money  _cargo_payment_rates[NUM_CARGO];
30
30
extern uint16 _cargo_payment_rates_frac[NUM_CARGO];
31
31
 
32
 
int UpdateCompanyRatingAndValue(Player *p, bool update);
 
32
int UpdateCompanyRatingAndValue(Company *c, bool update);
33
33
Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
34
34
void DeleteSubsidyWithTown(TownID index);
35
35
void DeleteSubsidyWithIndustry(IndustryID index);
36
36
void DeleteSubsidyWithStation(StationID index);
 
37
void StartupIndustryDailyChanges(bool init_counter);
37
38
 
38
39
Money GetTransportedGoodsIncome(uint num_pieces, uint dist, byte transit_days, CargoID cargo_type);
39
40
uint MoveGoodsToStation(TileIndex tile, int w, int h, CargoID type, uint amount);