10 #ifndef STATION_FUNC_H 11 #define STATION_FUNC_H 23 void ModifyStationRatingAround(
TileIndex tile,
Owner owner,
int amount, uint radius);
41 void UpdateStationDockingTiles(
Station *st);
67 return (_price[PR_INFRASTRUCTURE_STATION] * num * (1 +
IntSqrt(num))) >> 7;
Owner
Enum for all companies/owners.
void UpdateAirportsNoise()
Recalculate the noise generated by the airports of each town.
Enums and other types related to roads.
Types related to the industry.
Tile information, used while rendering the tile.
void ClearDockingTilesCheckingNeighbours(TileIndex tile)
Clear docking tile status from tiles around a removed dock, if the tile has no neighbours which would...
Money AirportMaintenanceCost(Owner owner)
Calculates the maintenance cost of all airports of a company.
bool HasStationInUse(StationID station, bool include_company, CompanyID company)
Tests whether the company's vehicles have this station in orders.
RoadType
The different roadtypes we support.
bool SplitGroundSpriteForOverlay(const TileInfo *ti, SpriteID *ground, RailTrackOffset *overlay_offset)
Check whether a sprite is a track sprite, which can be replaced by a non-track ground sprite and a ra...
std::set< Station *, StationCompare > StationList
List of stations.
bool IsValidDockingDirectionForDock(TileIndex t, DiagDirection d)
Check if a dock tile can be docked from the given direction.
void RerouteCargo(Station *st, CargoID c, StationID avoid, StationID avoid2)
Reroute cargo of type c at station st or in any vehicles unloading there.
Ground palette sprite of a tile, together with its sprite layout.
bool CanStationTileHavePylons(TileIndex tile)
Check if a rail station tile shall have pylons when electrified.
bool CanStationTileHaveWires(TileIndex tile)
Check if a rail station tile shall have wires when electrified.
Represents the covered area of e.g.
bool IsStationTileBlocked(TileIndex tile)
Check whether a rail station tile is NOT traversable.
Declaration of link graph types used for cargo distribution.
void IncreaseStats(Station *st, const Vehicle *v, StationID next_station_id)
Increase capacity for all link stats associated with vehicles in the given consist.
CargoArray GetAcceptanceAroundTiles(TileIndex tile, int w, int h, int rad, CargoTypes *always_accepted=nullptr)
Get the acceptance of cargoes around the tile in 1/8.
void ShowStationViewWindow(StationID station)
Opens StationViewWindow for given station.
EdgeUpdateMode
Special modes for updating links.
StationType
Station types.
Class for storing amounts of cargo.
RailType
Enumeration for all possible railtypes.
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
static Money StationMaintenanceCost(uint32 num)
Calculates the maintenance cost of a number of station tiles.
uint32 TileIndex
The index/ID of a Tile.
Functions related to the economy.
Types related to vehicles.
void FindStationsAroundTiles(const TileArea &location, StationList *stations, bool use_nearby=true)
Find all stations around a rectangular producer (industry, house, headquarter, ...)
Base for drawing complex sprites.
void UpdateAllStationVirtCoords()
Update the virtual coords needed to draw the station sign for all stations.
RailTrackOffset
Offsets for sprites within an overlay/underlay set.
uint32 IntSqrt(uint32 num)
Compute the integer square root.
void UpdateStationAcceptance(Station *st, bool show_msg)
Update the acceptance for a station.
DiagDirection
Enumeration for diagonal directions.
byte CargoID
Cargo slots to indicate a cargo type within a game.
CargoArray GetProductionAroundTiles(TileIndex tile, int w, int h, int rad)
Get the cargo types being produced around the tile (in a rectangle).
The different types of rail.