src/station_func.h
author rubidium
Fri, 12 Sep 2008 17:38:57 +0000
changeset 10115 e162dbf901d2
parent 9334 28ac6c8e0795
child 10207 c291a21b304e
permissions -rw-r--r--
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     1
/* $Id$ */
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     2
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     3
/** @file station_func.h Functions related to stations. */
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     4
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     5
#ifndef STATION_FUNC_H
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     6
#define STATION_FUNC_H
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     7
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     8
#include "station_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
     9
#include "sprite.h"
8787
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    10
#include "rail_type.h"
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    11
#include "road_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    12
#include "tile_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    13
#include "cargo_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    14
#include "vehicle_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    15
#include <set>
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    16
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    17
void ModifyStationRatingAround(TileIndex tile, PlayerID owner, int amount, uint radius);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    18
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    19
/** A set of stations (\c const \c Station* ) */
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    20
typedef std::set<Station*> StationSet;
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    21
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    22
StationSet FindStationsAroundIndustryTile(TileIndex tile, int w, int h);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    23
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    24
void ShowStationViewWindow(StationID station);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    25
void UpdateAllStationVirtCoord();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    26
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    27
void AfterLoadStations();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    28
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    29
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    30
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    31
const DrawTileSprites *GetStationTileLayout(StationType st, byte gfx);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    32
void StationPickerDrawSprite(int x, int y, StationType st, RailType railtype, RoadType roadtype, int image);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    33
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    34
bool HasStationInUse(StationID station, PlayerID player);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    35
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    36
RoadStop * GetRoadStopByTile(TileIndex tile, RoadStopType type);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    37
uint GetNumRoadStops(const Station* st, RoadStopType type);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    38
RoadStop * AllocateRoadStop();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    39
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    40
void ClearSlot(Vehicle *v);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    41
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    42
void DeleteOilRig(TileIndex t);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    43
8787
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    44
/* Check if a rail station tile is traversable. */
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    45
bool IsStationTileBlocked(TileIndex tile);
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    46
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    47
/* Check if a rail station tile is electrifiable. */
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    48
bool IsStationTileElectrifiable(TileIndex tile);
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    49
9334
28ac6c8e0795 (svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
belugas
parents: 8787
diff changeset
    50
void UpdateAirportsNoise();
8787
41d9d5adbe87 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff).
rubidium
parents: 8785
diff changeset
    51
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    52
#endif /* STATION_FUNC_H */