author | truebrain |
Mon, 30 Jun 2008 13:36:06 +0000 | |
branch | noai |
changeset 11100 | b960288098b9 |
parent 10715 | 6bdf79ffb022 |
permissions | -rw-r--r-- |
9837 | 1 |
/* $Id$ */ |
2 |
||
3 |
/** @file station_func.h Functions related to stations. */ |
|
4 |
||
5 |
#ifndef STATION_FUNC_H |
|
6 |
#define STATION_FUNC_H |
|
7 |
||
8 |
#include "station_type.h" |
|
9 |
#include "sprite.h" |
|
10 |
#include "rail_type.h" |
|
11 |
#include "road_type.h" |
|
12 |
#include "tile_type.h" |
|
13 |
#include "cargo_type.h" |
|
14 |
#include "vehicle_type.h" |
|
15 |
#include <set> |
|
16 |
||
17 |
void ModifyStationRatingAround(TileIndex tile, PlayerID owner, int amount, uint radius); |
|
18 |
||
19 |
/** A set of stations (\c const \c Station* ) */ |
|
20 |
typedef std::set<Station*> StationSet; |
|
21 |
||
22 |
StationSet FindStationsAroundIndustryTile(TileIndex tile, int w, int h); |
|
23 |
||
24 |
void ShowStationViewWindow(StationID station); |
|
25 |
void UpdateAllStationVirtCoord(); |
|
26 |
||
27 |
void AfterLoadStations(); |
|
28 |
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad); |
|
29 |
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad); |
|
30 |
||
31 |
const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx); |
|
32 |
void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image); |
|
33 |
||
34 |
bool HasStationInUse(StationID station, PlayerID player); |
|
35 |
||
36 |
RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type); |
|
37 |
uint GetNumRoadStops(const Station* st, RoadStopType type); |
|
38 |
RoadStop * AllocateRoadStop(); |
|
39 |
||
40 |
void ClearSlot(Vehicle *v); |
|
41 |
||
42 |
void DeleteOilRig(TileIndex t); |
|
43 |
||
44 |
/* Check if a rail station tile is traversable. */ |
|
45 |
bool IsStationTileBlocked(TileIndex tile); |
|
46 |
||
47 |
/* Check if a rail station tile is electrifiable. */ |
|
48 |
bool IsStationTileElectrifiable(TileIndex tile); |
|
49 |
||
10715
6bdf79ffb022
(svn r13265) [NoAI] -Sync with trunk r13185:13264.
rubidium
parents:
9837
diff
changeset
|
50 |
void UpdateAirportsNoise(); |
9837 | 51 |
|
52 |
#endif /* STATION_FUNC_H */ |