author | translators |
Sat, 13 Dec 2008 18:45:37 +0000 | |
changeset 10420 | 553508015907 |
parent 10353 | 452d21d281e6 |
permissions | -rw-r--r-- |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
1 |
/* $Id$ */ |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
2 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
3 |
/** @file station_func.h Functions related to stations. */ |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
4 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
5 |
#ifndef STATION_FUNC_H |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
6 |
#define STATION_FUNC_H |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
7 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
8 |
#include "station_type.h" |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
9 |
#include "sprite.h" |
10235
531716190738
(svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus)
rubidium
parents:
10207
diff
changeset
|
10 |
#include "oldpool.h" |
8787
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
11 |
#include "rail_type.h" |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
12 |
#include "road_type.h" |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
13 |
#include "tile_type.h" |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
14 |
#include "cargo_type.h" |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
15 |
#include "vehicle_type.h" |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
16 |
#include <set> |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
17 |
|
10207
c291a21b304e
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
rubidium
parents:
9334
diff
changeset
|
18 |
void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius); |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
19 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
20 |
/** A set of stations (\c const \c Station* ) */ |
10235
531716190738
(svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus)
rubidium
parents:
10207
diff
changeset
|
21 |
typedef std::set<Station*, PoolItemIndexLess<Station> > StationSet; |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
22 |
|
10353
452d21d281e6
(svn r14604) -Codechange: Simplify a function and rename it, and fix some comments.
frosch
parents:
10235
diff
changeset
|
23 |
StationSet FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod); |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
24 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
25 |
void ShowStationViewWindow(StationID station); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
26 |
void UpdateAllStationVirtCoord(); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
27 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
28 |
void AfterLoadStations(); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
29 |
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
30 |
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
31 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
32 |
const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
33 |
void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
34 |
|
10207
c291a21b304e
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
rubidium
parents:
9334
diff
changeset
|
35 |
bool HasStationInUse(StationID station, CompanyID company); |
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
36 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
37 |
RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
38 |
uint GetNumRoadStops(const Station* st, RoadStopType type); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
39 |
RoadStop * AllocateRoadStop(); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
40 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
41 |
void ClearSlot(Vehicle *v); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
42 |
|
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
43 |
void DeleteOilRig(TileIndex t); |
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
44 |
|
8787
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
45 |
/* Check if a rail station tile is traversable. */ |
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
46 |
bool IsStationTileBlocked(TileIndex tile); |
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
47 |
|
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
48 |
/* Check if a rail station tile is electrifiable. */ |
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
49 |
bool IsStationTileElectrifiable(TileIndex tile); |
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
50 |
|
9334
28ac6c8e0795
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
belugas
parents:
8787
diff
changeset
|
51 |
void UpdateAirportsNoise(); |
8787
41d9d5adbe87
(svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents:
8785
diff
changeset
|
52 |
|
8785
871586967963
(svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff
changeset
|
53 |
#endif /* STATION_FUNC_H */ |