src/station.h
changeset 7768 2060e8d65a72
parent 7509 5adc45aa7c3c
child 7872 a0646ade9d4a
equal deleted inserted replaced
7767:7d8033aa8248 7768:2060e8d65a72
   183 
   183 
   184 protected:
   184 protected:
   185 	static Station *AllocateRaw();
   185 	static Station *AllocateRaw();
   186 };
   186 };
   187 
   187 
       
   188 enum StationType {
       
   189 	STATION_RAIL,
       
   190 	STATION_AIRPORT,
       
   191 	STATION_TRUCK,
       
   192 	STATION_BUS,
       
   193 	STATION_OILRIG,
       
   194 	STATION_DOCK,
       
   195 	STATION_BUOY
       
   196 };
       
   197 
   188 enum {
   198 enum {
   189 	FACIL_TRAIN      = 0x01,
   199 	FACIL_TRAIN      = 0x01,
   190 	FACIL_TRUCK_STOP = 0x02,
   200 	FACIL_TRUCK_STOP = 0x02,
   191 	FACIL_BUS_STOP   = 0x04,
   201 	FACIL_BUS_STOP   = 0x04,
   192 	FACIL_AIRPORT    = 0x08,
   202 	FACIL_AIRPORT    = 0x08,
   261 void AfterLoadStations();
   271 void AfterLoadStations();
   262 void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
   272 void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
   263 void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
   273 void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
   264 
   274 
   265 
   275 
   266 const DrawTileSprites *GetStationTileLayout(byte gfx);
   276 const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
   267 void StationPickerDrawSprite(int x, int y, RailType railtype, RoadType roadtype, int image);
   277 void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
   268 
   278 
   269 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStop::Type type);
   279 RoadStop * GetRoadStopByTile(TileIndex tile, RoadStop::Type type);
   270 uint GetNumRoadStops(const Station* st, RoadStop::Type type);
   280 uint GetNumRoadStops(const Station* st, RoadStop::Type type);
   271 RoadStop * AllocateRoadStop();
   281 RoadStop * AllocateRoadStop();
   272 void ClearSlot(Vehicle *v);
   282 void ClearSlot(Vehicle *v);