src/station_func.h
author rubidium
Fri, 25 Apr 2008 15:22:32 +0000
changeset 9055 4dc6a0c0ef47
parent 8787 41d9d5adbe87
child 9334 28ac6c8e0795
permissions -rw-r--r--
(svn r12897) -Codechange: some coding style in station_cmd.cpp.
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
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
    50
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    51
#endif /* STATION_FUNC_H */