station_func.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef STATION_FUNC_H
00013 #define STATION_FUNC_H
00014
00015 #include "station_type.h"
00016 #include "sprite.h"
00017 #include "rail_type.h"
00018 #include "road_type.h"
00019 #include "cargo_type.h"
00020 #include "company_type.h"
00021
00022 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
00023
00024 void FindStationsAroundTiles(const TileArea &location, StationList *stations);
00025
00026 void ShowStationViewWindow(StationID station);
00027 void UpdateAllStationVirtCoords();
00028
00029 CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad);
00030 CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint32 *always_accepted = NULL);
00031
00032 void UpdateStationAcceptance(Station *st, bool show_msg);
00033
00034 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
00035 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
00036
00037 bool HasStationInUse(StationID station, CompanyID company);
00038
00039 RoadStop *GetRoadStopByTile(TileIndex tile, RoadStopType type);
00040 uint GetNumRoadStops(const Station *st, RoadStopType type);
00041
00042 void DeleteOilRig(TileIndex t);
00043
00044
00045 bool IsStationTileBlocked(TileIndex tile);
00046
00047
00048 bool IsStationTileElectrifiable(TileIndex tile);
00049
00050 void UpdateAirportsNoise();
00051
00052 #endif