src/station_func.h
author translators
Sun, 30 Nov 2008 18:46:32 +0000
changeset 10395 6fe57f7c5d8d
parent 10353 452d21d281e6
permissions -rw-r--r--
(svn r14646) -Update: WebTranslator2 update to 2008-11-30 18:46:24
esperanto - 4 fixed by Athaba (4)
finnish - 1 changed by SuomiPoika (1)
indonesian - 16 fixed, 4 changed by fanioz (20)
korean - 1 fixed by dlunch (1)
lithuanian - 57 fixed, 20 changed by Enternald (77)
macedonian - 140 fixed, 1 changed by simonkoco (34), zharko (107)
persian - 21 fixed by ali sattari (21)
serbian - 5 fixed by dejac (5)
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"
10235
531716190738 (svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus)
rubidium
parents: 10207
diff changeset
    10
#include "oldpool.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
    11
#include "rail_type.h"
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    12
#include "road_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    13
#include "tile_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    14
#include "cargo_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    15
#include "vehicle_type.h"
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    16
#include <set>
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    17
10207
c291a21b304e (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
rubidium
parents: 9334
diff changeset
    18
void ModifyStationRatingAround(TileIndex tile, Owner owner, int amount, uint radius);
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    19
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    20
/** A set of stations (\c const \c Station* ) */
10235
531716190738 (svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus)
rubidium
parents: 10207
diff changeset
    21
typedef std::set<Station*, PoolItemIndexLess<Station> > StationSet;
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    22
10353
452d21d281e6 (svn r14604) -Codechange: Simplify a function and rename it, and fix some comments.
frosch
parents: 10235
diff changeset
    23
StationSet FindStationsAroundTiles(TileIndex tile, int w_prod, int h_prod);
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    24
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    25
void ShowStationViewWindow(StationID station);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    26
void UpdateAllStationVirtCoord();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    27
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    28
void AfterLoadStations();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    29
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
    30
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
    31
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    32
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
    33
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
    34
10207
c291a21b304e (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
rubidium
parents: 9334
diff changeset
    35
bool HasStationInUse(StationID station, CompanyID company);
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    36
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    37
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
    38
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
    39
RoadStop * AllocateRoadStop();
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    40
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    41
void ClearSlot(Vehicle *v);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    42
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    43
void DeleteOilRig(TileIndex t);
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    44
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
    45
/* 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
    46
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
    47
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
/* 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
    49
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
    50
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
    51
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
    52
8785
871586967963 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h.
rubidium
parents:
diff changeset
    53
#endif /* STATION_FUNC_H */