station_func.h

Go to the documentation of this file.
00001 /* $Id: station_func.h 15073 2009-01-13 20:43:53Z peter1138 $ */
00002 
00005 #ifndef STATION_FUNC_H
00006 #define STATION_FUNC_H
00007 
00008 #include "station_type.h"
00009 #include "sprite.h"
00010 #include "oldpool.h"
00011 #include "rail_type.h"
00012 #include "road_type.h"
00013 #include "tile_type.h"
00014 #include "cargo_type.h"
00015 #include "vehicle_type.h"
00016 #include "core/smallvec_type.hpp"
00017 
00018 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
00019 
00020 typedef SmallVector<Station*, 1> StationList;
00021 void FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod, StationList *stations);
00022 
00023 void ShowStationViewWindow(StationID station);
00024 void UpdateAllStationVirtCoord();
00025 
00026 void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
00027 void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
00028 
00029 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
00030 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
00031 
00032 bool HasStationInUse(StationID station, CompanyID company);
00033 
00034 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type);
00035 uint GetNumRoadStops(const Station *st, RoadStopType type);
00036 RoadStop * AllocateRoadStop();
00037 
00038 void ClearSlot(Vehicle *v);
00039 
00040 void DeleteOilRig(TileIndex t);
00041 
00042 /* Check if a rail station tile is traversable. */
00043 bool IsStationTileBlocked(TileIndex tile);
00044 
00045 /* Check if a rail station tile is electrifiable. */
00046 bool IsStationTileElectrifiable(TileIndex tile);
00047 
00048 void UpdateAirportsNoise();
00049 
00050 #endif /* STATION_FUNC_H */

Generated on Wed Jul 15 20:36:02 2009 for OpenTTD by  doxygen 1.5.6