station_func.h

Go to the documentation of this file.
00001 /* $Id: station_func.h 18385 2009-12-02 18:18:56Z rubidium $ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
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 "tile_type.h"
00020 #include "cargo_type.h"
00021 #include "vehicle_type.h"
00022 
00023 void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
00024 
00025 void FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod, 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 
00035 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
00036 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
00037 
00038 bool HasStationInUse(StationID station, CompanyID company);
00039 
00040 RoadStop *GetRoadStopByTile(TileIndex tile, RoadStopType type);
00041 uint GetNumRoadStops(const Station *st, RoadStopType type);
00042 
00043 void DeleteOilRig(TileIndex t);
00044 
00045 /* Check if a rail station tile is traversable. */
00046 bool IsStationTileBlocked(TileIndex tile);
00047 
00048 /* Check if a rail station tile is electrifiable. */
00049 bool IsStationTileElectrifiable(TileIndex tile);
00050 
00051 void UpdateAirportsNoise();
00052 
00053 #endif /* STATION_FUNC_H */

Generated on Wed Dec 23 23:27:54 2009 for OpenTTD by  doxygen 1.5.6