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 |
|
|
50 |
|
|
51 |
#endif /* STATION_FUNC_H */
|