richk@10184: /* $Id$ */ richk@10184: richk@10184: /** @file station_func.h Functions related to stations. */ richk@10184: richk@10184: #ifndef STATION_FUNC_H richk@10184: #define STATION_FUNC_H richk@10184: richk@10184: #include "station_type.h" richk@10184: #include "sprite.h" richk@10184: #include "rail_type.h" richk@10184: #include "road_type.h" richk@10184: #include "tile_type.h" richk@10184: #include "cargo_type.h" richk@10184: #include "vehicle_type.h" richk@10184: #include richk@10184: richk@10184: void ModifyStationRatingAround(TileIndex tile, PlayerID owner, int amount, uint radius); richk@10184: richk@10184: /** A set of stations (\c const \c Station* ) */ richk@10184: typedef std::set StationSet; richk@10184: richk@10184: StationSet FindStationsAroundIndustryTile(TileIndex tile, int w, int h); richk@10184: richk@10184: void ShowStationViewWindow(StationID station); richk@10184: void UpdateAllStationVirtCoord(); richk@10184: richk@10184: void AfterLoadStations(); richk@10184: void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad); richk@10184: void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad); richk@10184: richk@10184: const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx); richk@10184: void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image); richk@10184: richk@10184: bool HasStationInUse(StationID station, PlayerID player); richk@10184: richk@10184: RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type); richk@10184: uint GetNumRoadStops(const Station* st, RoadStopType type); richk@10184: RoadStop * AllocateRoadStop(); richk@10184: richk@10184: void ClearSlot(Vehicle *v); richk@10184: richk@10184: void DeleteOilRig(TileIndex t); richk@10184: richk@10184: /* Check if a rail station tile is traversable. */ richk@10184: bool IsStationTileBlocked(TileIndex tile); richk@10184: richk@10184: /* Check if a rail station tile is electrifiable. */ richk@10184: bool IsStationTileElectrifiable(TileIndex tile); richk@10184: richk@10184: richk@10184: #endif /* STATION_FUNC_H */