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 #include "order_type.h"
00022
00023 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
00024
00025 void FindStationsAroundTiles(const TileArea &location, StationList *stations);
00026
00027 void ShowStationViewWindow(StationID station);
00028 void UpdateAllStationVirtCoords();
00029
00030 CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad);
00031 CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint32 *always_accepted = NULL);
00032
00033 void UpdateStationAcceptance(Station *st, bool show_msg);
00034 uint UpdateStationWaiting(Station *st, CargoID type, uint amount, SourceType source_type, SourceID source_id, TileIndex dest_tile = INVALID_TILE, SourceType dest_type = ST_INDUSTRY, SourceID dest_id = INVALID_SOURCE, OrderID next_hop = INVALID_ORDER, StationID next_unload = INVALID_STATION, byte flags = 0);
00035
00036 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
00037 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
00038
00039 bool HasStationInUse(StationID station, bool include_company, CompanyID company);
00040
00041 void DeleteOilRig(TileIndex t);
00042
00043
00044 bool IsStationTileBlocked(TileIndex tile);
00045
00046
00047 bool IsStationTileElectrifiable(TileIndex tile);
00048
00049 void UpdateAirportsNoise();
00050
00051 #endif