comparison src/economy.cpp @ 8116:9cc845deddfe draft

(svn r11677) -Codechange: move price and command related types/functions to their respective places.
author rubidium <rubidium@openttd.org>
date Fri, 21 Dec 2007 21:50:46 +0000
parents 2d6af5d7a142
children b6ec923e9fa8
comparison
equal deleted inserted replaced
8115:b55bf72f8198 8116:9cc845deddfe
13 #include "news.h" 13 #include "news.h"
14 #include "player.h" 14 #include "player.h"
15 #include "station.h" 15 #include "station.h"
16 #include "vehicle.h" 16 #include "vehicle.h"
17 #include "gfx.h" 17 #include "gfx.h"
18 #include "command.h" 18 #include "command_func.h"
19 #include "saveload.h" 19 #include "saveload.h"
20 #include "economy.h"
21 #include "industry.h" 20 #include "industry.h"
22 #include "town.h" 21 #include "town.h"
23 #include "network/network.h" 22 #include "network/network.h"
24 #include "sound.h" 23 #include "sound.h"
25 #include "engine.h" 24 #include "engine.h"
87 { SCORE_LOAN, 250000, 50 }, 86 { SCORE_LOAN, 250000, 50 },
88 { SCORE_TOTAL, 0, 0 } 87 { SCORE_TOTAL, 0, 0 }
89 }; 88 };
90 89
91 int _score_part[MAX_PLAYERS][SCORE_END]; 90 int _score_part[MAX_PLAYERS][SCORE_END];
91 Economy _economy;
92 Subsidy _subsidies[MAX_PLAYERS];
93 Prices _price;
94 uint16 _price_frac[NUM_PRICES];
92 95
93 Money CalculateCompanyValue(const Player* p) 96 Money CalculateCompanyValue(const Player* p)
94 { 97 {
95 PlayerID owner = p->index; 98 PlayerID owner = p->index;
96 /* Do a little nasty by using CommandCost, so we can use the "overflow" protection of CommandCost */ 99 /* Do a little nasty by using CommandCost, so we can use the "overflow" protection of CommandCost */