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 "sprite.h"
00016 #include "rail_type.h"
00017 #include "road_type.h"
00018 #include "economy_func.h"
00019
00020 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
00021
00022 void FindStationsAroundTiles(const TileArea &location, StationList *stations);
00023
00024 void ShowStationViewWindow(StationID station);
00025 void UpdateAllStationVirtCoords();
00026
00027 CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad);
00028 CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, uint32 *always_accepted = NULL);
00029
00030 void UpdateStationAcceptance(Station *st, bool show_msg);
00031
00032 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
00033 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
00034
00035 bool HasStationInUse(StationID station, bool include_company, CompanyID company);
00036
00037 void DeleteOilRig(TileIndex t);
00038
00039
00040 bool IsStationTileBlocked(TileIndex tile);
00041
00042 bool CanStationTileHavePylons(TileIndex tile);
00043 bool CanStationTileHaveWires(TileIndex tile);
00044
00045 void UpdateAirportsNoise();
00046
00052 static inline Money StationMaintenanceCost(uint32 num)
00053 {
00054 return (_price[PR_INFRASTRUCTURE_STATION] * num * (1 + IntSqrt(num))) >> 7;
00055 }
00056
00057 Money AirportMaintenanceCost(Owner owner);
00058
00059 #endif