Mercurial > hg > openttd
comparison src/station_func.h @ 20307:93d7e37bd666 draft
(svn r25259) -Codechange: track capacities and usage of links
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 19 May 2013 14:22:04 +0000 |
parents | e66469894c9c |
children | 947af5871167 |
comparison
equal
deleted
inserted
replaced
20306:824359db5de9 | 20307:93d7e37bd666 |
---|---|
13 #define STATION_FUNC_H | 13 #define STATION_FUNC_H |
14 | 14 |
15 #include "sprite.h" | 15 #include "sprite.h" |
16 #include "rail_type.h" | 16 #include "rail_type.h" |
17 #include "road_type.h" | 17 #include "road_type.h" |
18 #include "vehicle_type.h" | |
18 #include "economy_func.h" | 19 #include "economy_func.h" |
19 #include "rail.h" | 20 #include "rail.h" |
20 | 21 |
21 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius); | 22 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius); |
22 | 23 |
45 | 46 |
46 void UpdateAirportsNoise(); | 47 void UpdateAirportsNoise(); |
47 | 48 |
48 bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, RailTrackOffset *overlay_offset); | 49 bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, RailTrackOffset *overlay_offset); |
49 | 50 |
51 void IncreaseStats(Station *st, const Vehicle *v, StationID next_station_id); | |
52 void IncreaseStats(Station *st, CargoID cargo, StationID next_station_id, uint capacity, uint usage); | |
53 | |
50 /** | 54 /** |
51 * Calculates the maintenance cost of a number of station tiles. | 55 * Calculates the maintenance cost of a number of station tiles. |
52 * @param num Number of station tiles. | 56 * @param num Number of station tiles. |
53 * @return Total cost. | 57 * @return Total cost. |
54 */ | 58 */ |