Maps accessors for stations. More...
#include "rail_map.h"
#include "road_map.h"
#include "water_map.h"
#include "station_func.h"
#include "rail.h"
Go to the source code of this file.
Typedefs | |
typedef byte | StationGfx |
Index of station graphics. | |
Functions | |
static StationID | GetStationIndex (TileIndex t) |
Get StationID from a tile. | |
static StationType | GetStationType (TileIndex t) |
Get the station type of this tile. | |
static RoadStopType | GetRoadStopType (TileIndex t) |
Get the road stop type of this tile. | |
static StationGfx | GetStationGfx (TileIndex t) |
Get the station graphics of this tile. | |
static void | SetStationGfx (TileIndex t, StationGfx gfx) |
Set the station graphics of this tile. | |
static bool | IsRailStation (TileIndex t) |
Is this station tile a rail station? | |
static bool | IsRailStationTile (TileIndex t) |
Is this tile a station tile and a rail station? | |
static bool | IsRailWaypoint (TileIndex t) |
Is this station tile a rail waypoint? | |
static bool | IsRailWaypointTile (TileIndex t) |
Is this tile a station tile and a rail waypoint? | |
static bool | HasStationRail (TileIndex t) |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint? | |
static bool | HasStationTileRail (TileIndex t) |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint? | |
static bool | IsAirport (TileIndex t) |
Is this station tile an airport? | |
static bool | IsAirportTile (TileIndex t) |
Is this tile a station tile and an airport tile? | |
bool | IsHangar (TileIndex t) |
Check whether the given tile is a hangar. | |
static bool | IsTruckStop (TileIndex t) |
Is the station at t a truck stop? | |
static bool | IsBusStop (TileIndex t) |
Is the station at t a bus stop? | |
static bool | IsRoadStop (TileIndex t) |
Is the station at t a road station? | |
static bool | IsRoadStopTile (TileIndex t) |
Is tile t a road stop station? | |
static bool | IsStandardRoadStopTile (TileIndex t) |
Is tile t a standard (non-drive through) road stop station? | |
static bool | IsDriveThroughStopTile (TileIndex t) |
Is tile t a drive through road stop station? | |
static StationGfx | GetAirportGfx (TileIndex t) |
Get the station graphics of this airport tile. | |
static DiagDirection | GetRoadStopDir (TileIndex t) |
Gets the direction the road stop entrance points towards. | |
static bool | IsOilRig (TileIndex t) |
Is tile t part of an oilrig? | |
static bool | IsDock (TileIndex t) |
Is tile t a dock tile? | |
static bool | IsDockTile (TileIndex t) |
Is tile t a dock tile? | |
static bool | IsBuoy (TileIndex t) |
Is tile t a buoy tile? | |
static bool | IsBuoyTile (TileIndex t) |
Is tile t a buoy tile? | |
static bool | IsHangarTile (TileIndex t) |
Is tile t an hangar tile? | |
static Axis | GetRailStationAxis (TileIndex t) |
Get the rail direction of a rail station. | |
static Track | GetRailStationTrack (TileIndex t) |
Get the rail track of a rail station tile. | |
static TrackBits | GetRailStationTrackBits (TileIndex t) |
Get the trackbits of a rail station tile. | |
static bool | IsCompatibleTrainStationTile (TileIndex t1, TileIndex t2) |
Check if tile is compatible with a railstation tile. | |
static bool | HasStationReservation (TileIndex t) |
Get the reservation state of the rail station. | |
static void | SetRailStationReservation (TileIndex t, bool b) |
Set the reservation state of the rail station. | |
static TrackBits | GetStationReservationTrackBits (TileIndex t) |
Get the reserved track bits for a waypoint. | |
static DiagDirection | GetDockDirection (TileIndex t) |
Get the direction of a dock. | |
static TileIndexDiffC | GetDockOffset (TileIndex t) |
Get the tileoffset from this tile a ship should target to get to this dock. | |
static bool | IsCustomStationSpecIndex (TileIndex t) |
Is there a custom rail station spec on this tile? | |
static void | SetCustomStationSpecIndex (TileIndex t, byte specindex) |
Set the custom station spec for this tile. | |
static uint | GetCustomStationSpecIndex (TileIndex t) |
Get the custom station spec for this tile. | |
static void | SetStationTileRandomBits (TileIndex t, byte random_bits) |
Set the random bits for a station tile. | |
static byte | GetStationTileRandomBits (TileIndex t) |
Get the random bits of a station tile. | |
static void | MakeStation (TileIndex t, Owner o, StationID sid, StationType st, byte section, WaterClass wc=WATER_CLASS_INVALID) |
Make the given tile a station tile. | |
static void | MakeRailStation (TileIndex t, Owner o, StationID sid, Axis a, byte section, RailType rt) |
Make the given tile a rail station tile. | |
static void | MakeRailWaypoint (TileIndex t, Owner o, StationID sid, Axis a, byte section, RailType rt) |
Make the given tile a rail waypoint tile. | |
static void | MakeRoadStop (TileIndex t, Owner o, StationID sid, RoadStopType rst, RoadTypes rt, DiagDirection d) |
Make the given tile a roadstop tile. | |
static void | MakeDriveThroughRoadStop (TileIndex t, Owner station, Owner road, Owner tram, StationID sid, RoadStopType rst, RoadTypes rt, Axis a) |
Make the given tile a drivethrough roadstop tile. | |
static void | MakeAirport (TileIndex t, Owner o, StationID sid, byte section, WaterClass wc) |
Make the given tile an airport tile. | |
static void | MakeBuoy (TileIndex t, StationID sid, WaterClass wc) |
Make the given tile a buoy tile. | |
static void | MakeDock (TileIndex t, Owner o, StationID sid, DiagDirection d, WaterClass wc) |
Make the given tile a dock tile. | |
static void | MakeOilrig (TileIndex t, StationID sid, WaterClass wc) |
Make the given tile an oilrig tile. | |
Variables | |
static const int | GFX_DOCK_BASE_WATER_PART = 4 |
The offset for the water parts. | |
static const int | GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET = 4 |
The offset for the drive through parts. |
Maps accessors for stations.
Definition in file station_map.h.
typedef byte StationGfx |
Index of station graphics.
Definition at line 21 of file station_map.h.
static StationGfx GetAirportGfx | ( | TileIndex | t | ) | [inline, static] |
Get the station graphics of this airport tile.
t | the tile to query |
Definition at line 245 of file station_map.h.
References GetStationGfx(), GetTranslatedAirportTileID(), and IsAirport().
Referenced by GetAirportTileIDAtOffset(), AirportTileSpec::GetByTile(), NIHAirportTile::GetSpec(), and NIHAirportTile::IsInspectable().
static uint GetCustomStationSpecIndex | ( | TileIndex | t | ) | [inline, static] |
Get the custom station spec for this tile.
t | Tile to query |
Definition at line 494 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
Referenced by CmdBuildRailStation(), CmdBuildRailWaypoint(), DeallocateSpecFromStation(), FindRailStationEnd(), and RemoveFromRailBaseStation().
static DiagDirection GetDockDirection | ( | TileIndex | t | ) | [inline, static] |
Get the direction of a dock.
t | Tile to query |
Definition at line 430 of file station_map.h.
References GetStationGfx(), GFX_DOCK_BASE_WATER_PART, and IsDock().
Referenced by GetDockOffset(), and RemoveDock().
static TileIndexDiffC GetDockOffset | ( | TileIndex | t | ) | [inline, static] |
Get the tileoffset from this tile a ship should target to get to this dock.
t | Tile to query |
Definition at line 444 of file station_map.h.
References GetDockDirection(), IsBuoy(), IsDock(), IsOilRig(), IsTileType(), and MP_STATION.
Referenced by Ship::GetOrderStationLocation().
Get the rail direction of a rail station.
t | Tile to query |
Definition at line 338 of file station_map.h.
References AXIS_Y, GetStationGfx(), HasBit(), and HasStationRail().
Referenced by CmdBuildRailStation(), ExploreSegment(), FindRailStationEnd(), GetAxisForNewWaypoint(), GetNearbyTile(), Station::GetPlatformLength(), GetRailStationTrack(), GetRailStationTrackBits(), IsCompatibleTrainStationTile(), and SetRailStationPlatformReservation().
Get the rail track of a rail station tile.
t | Tile to query |
Definition at line 350 of file station_map.h.
References AxisToTrack(), and GetRailStationAxis().
Referenced by CmdConvertRail(), GetRailTrackBitsUniversal(), AIRail::GetRailTracks(), CYapfDestinationTileOrStationRailT< Types >::PfDetectDestination(), RemoveFromRailBaseStation(), and RemoveRailStation().
Get the trackbits of a rail station tile.
t | Tile to query |
Definition at line 361 of file station_map.h.
References AxisToTrackBits(), and GetRailStationAxis().
Referenced by AIRail::GetRailStationDirection(), and GetStationReservationTrackBits().
static DiagDirection GetRoadStopDir | ( | TileIndex | t | ) | [inline, static] |
Gets the direction the road stop entrance points towards.
t | the tile of the road stop |
Definition at line 258 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by CheckFlatLandRoadStop(), RoadStop::Entry::CheckIntegrity(), RoadStop::ClearDriveThrough(), CmdBuildRoad(), CmdRemoveRoadStop(), CopyPaste::CopyArea(), GetAnyRoadBits(), AIRoad::GetDriveThroughBackTile(), AIRoad::GetRoadStationFrontTile(), GetTileSingleEntry(), RoadVehicle::GetVehicleTrackdir(), RoadStop::IsDriveThroughRoadStopContinuation(), RoadStop::MakeDriveThrough(), NeighbourHasReachableRoad(), RoadStop::Entry::Rebuild(), and RoadFindPathToDest().
static RoadStopType GetRoadStopType | ( | TileIndex | t | ) | [inline, static] |
Get the road stop type of this tile.
t | the tile to query |
Definition at line 57 of file station_map.h.
References GetStationType(), and ROADSTOP_TRUCK.
Referenced by RoadStop::ClearDriveThrough(), CmdRemoveRoadStop(), RoadVehicle::Crash(), DeleteLastRoadVeh(), RoadStop::MakeDriveThrough(), Vehicle::PreDestructor(), AIRoad::RemoveRoadStation(), and RoadFindPathToDest().
static StationGfx GetStationGfx | ( | TileIndex | t | ) | [inline, static] |
Get the station graphics of this tile.
t | the tile to query |
Definition at line 69 of file station_map.h.
References _m, IsTileType(), Tile::m5, and MP_STATION.
Referenced by AfterLoadGame(), GetAirportGfx(), GetDockDirection(), GetRailStationAxis(), GetRoadStopDir(), IsDriveThroughStopTile(), IsStandardRoadStopTile(), IsStationTileBlocked(), and IsStationTileElectrifiable().
Get StationID from a tile.
t | Tile to query station ID from |
Definition at line 29 of file station_map.h.
References _m, IsTileType(), Tile::m2, and MP_STATION.
Referenced by AddNearbyStation(), AITileList_StationType::AITileList_StationType(), AIVehicleList_Depot::AIVehicleList_Depot(), CheckFlatLandRailStation(), CheckFlatLandRoadStop(), CheckNextTrainTile(), CmdBuildAircraft(), CmdReverseTrainDirection(), DisasterTick_Zeppeliner(), FindRailStationEnd(), FindStationsNearby(), FreeTrainTrackReservation(), AIAirport::GetAirportType(), SpecializedStation< Waypoint, true >::GetByTile(), BaseStation::GetByTile(), Train::GetCurrentMaxSpeed(), GetNearbyAirportTileInformation(), GetStationAround(), AIStation::GetStationID(), AIWaypoint::GetWaypointID(), AIOrder::InsertOrder(), IsCompatibleTrainStationTile(), RoadStop::IsDriveThroughRoadStopContinuation(), IsValidTileForWaypoint(), LoadUnloadVehicle(), MoveBuoysToWaypoints(), DepotWindow::OnClick(), CYapfCostRailT< Types >::PfCalcCost(), CYapfDestinationTileOrStationRailT< Types >::PfDetectDestination(), ProcessOrders(), StationRect::ScanForStationTiles(), NIHAirportTile::SetStringParameters(), NIHStation::SetStringParameters(), DepotWindow::SetStringParameters(), Vehicle::ShowVisualEffect(), Waypoint::TileBelongsToRailStation(), Station::TileBelongsToRailStation(), and VehicleEnterDepot().
Get the reserved track bits for a waypoint.
t | the tile |
Definition at line 418 of file station_map.h.
References GetRailStationTrackBits(), and HasStationReservation().
Referenced by GetReservedTrackbits().
static byte GetStationTileRandomBits | ( | TileIndex | t | ) | [inline, static] |
Get the random bits of a station tile.
t | Tile to query |
Definition at line 518 of file station_map.h.
References _m, GB(), IsTileType(), and MP_STATION.
static StationType GetStationType | ( | TileIndex | t | ) | [inline, static] |
Get the station type of this tile.
t | the tile to query |
Definition at line 45 of file station_map.h.
References _m, GB(), IsTileType(), and MP_STATION.
Referenced by AfterLoadCompanyStats(), AfterLoadGame(), AITileList_StationType::AITileList_StationType(), ClearTile_Station(), CopyPaste::CopyArea(), GetGrfSpecFeature(), GetRoadStopType(), GetSmallMapRoutesPixels(), GetSmallMapStuckRoutesPixels(), IsAirport(), IsBuoy(), IsBusStop(), IsDock(), IsDockTile(), RoadStop::IsDriveThroughRoadStopContinuation(), IsOilRig(), IsRailStation(), IsRailWaypoint(), and IsTruckStop().
static bool HasStationRail | ( | TileIndex | t | ) | [inline, static] |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint?
t | the tile to check |
Definition at line 136 of file station_map.h.
References IsRailStation(), and IsRailWaypoint().
Referenced by AfterLoadGame(), CanEnterTileOwnerCheck(), CmdConvertRail(), ExploreSegment(), FindRailStationEnd(), GetRailStationAxis(), GetRailTrackBitsUniversal(), GetReservedTrackbits(), GetTileRailType(), HasStationReservation(), HasStationTileRail(), SetRailStationReservation(), TryReserveRailTrack(), and UnreserveRailTrack().
static bool HasStationReservation | ( | TileIndex | t | ) | [inline, static] |
Get the reservation state of the rail station.
t | the station tile |
Definition at line 394 of file station_map.h.
References _m, HasBit(), and HasStationRail().
Referenced by CmdBuildRailStation(), CmdBuildRailWaypoint(), GetStationReservationTrackBits(), CYapfCostRailT< Types >::IsAnyStationTileReserved(), RemoveFromRailBaseStation(), RemoveRailStation(), CYapfReserveTrack< Types >::ReserveRailStationPlatform(), and TryReserveRailTrack().
static bool HasStationTileRail | ( | TileIndex | t | ) | [inline, static] |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint?
t | the tile to check |
Definition at line 147 of file station_map.h.
References HasStationRail(), IsTileType(), and MP_STATION.
Referenced by CmdBuildRailStation(), CmdBuildRailWaypoint(), GetCustomStationSpecIndex(), GetNearbyTile(), IsCustomStationSpecIndex(), AIRail::IsRailTile(), CYapfDestinationTileOrStationRailT< Types >::PfDetectDestination(), RemoveFromRailBaseStation(), SetCustomStationSpecIndex(), and SetDefaultRailGui().
static bool IsAirport | ( | TileIndex | t | ) | [inline, static] |
Is this station tile an airport?
t | the tile to get the information from |
Definition at line 158 of file station_map.h.
References GetStationType().
Referenced by AIVehicleList_Depot::AIVehicleList_Depot(), GetAirportGfx(), GetNearbyAirportTileInformation(), IsAirportTile(), AIAirport::IsAirportTile(), and IsHangar().
static bool IsAirportTile | ( | TileIndex | t | ) | [inline, static] |
Is this tile a station tile and an airport tile?
t | the tile to get the information from |
Definition at line 168 of file station_map.h.
References IsAirport(), IsTileType(), and MP_STATION.
Referenced by AfterLoadGame(), DisasterTick_Zeppeliner(), FloodVehicleProc(), and FloodVehicles().
static bool IsBuoy | ( | TileIndex | t | ) | [inline, static] |
Is tile t a buoy tile?
t | Tile to check |
true
if the tile is a buoy Definition at line 307 of file station_map.h.
References GetStationType().
Referenced by AfterLoadGame(), GetDockOffset(), GetOrderTypeByTile(), IsBuoyTile(), AIMarine::IsBuoyTile(), and IsWateredTile().
static bool IsBuoyTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t a buoy tile?
t | Tile to check |
true
if the tile is a buoy Definition at line 317 of file station_map.h.
References IsBuoy(), IsTileType(), and MP_STATION.
Referenced by AfterLoadGame(), IsCrossableWater(), IsTunnelInWayDir(), MoveBuoysToWaypoints(), and ResetLandscapeConfirmationCallback().
static bool IsBusStop | ( | TileIndex | t | ) | [inline, static] |
Is the station at t a bus stop?
t | Tile to check |
true
if station is a bus stop, false
otherwise Definition at line 192 of file station_map.h.
References GetStationType().
Referenced by IsRoadStop().
Check if tile is compatible with a railstation tile.
The two tiles are compatible if all of the following are true:
t1 | First tile to compare | |
t2 | Second tile to compare |
Definition at line 379 of file station_map.h.
References GetRailStationAxis(), GetRailType(), GetStationIndex(), IsCompatibleRail(), IsRailStationTile(), and IsStationTileBlocked().
Referenced by ClearPathReservation(), FollowTrainReservation(), Station::GetPlatformLength(), GetTrainForReservation(), CYapfReserveTrack< Types >::ReserveRailStationPlatform(), SetRailStationPlatformReservation(), and CYapfReserveTrack< Types >::UnreserveSingleTrack().
static bool IsCustomStationSpecIndex | ( | TileIndex | t | ) | [inline, static] |
Is there a custom rail station spec on this tile?
t | Tile to query |
Definition at line 470 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
static bool IsDock | ( | TileIndex | t | ) | [inline, static] |
Is tile t a dock tile?
t | Tile to check |
true
if the tile is a dock Definition at line 286 of file station_map.h.
References GetStationType().
Referenced by AfterLoadGame(), GetDockDirection(), GetDockOffset(), AIMarine::IsDockTile(), and IsWateredTile().
static bool IsDockTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t a dock tile?
t | Tile to check |
true
if the tile is a dock Definition at line 296 of file station_map.h.
References GetStationType(), IsTileType(), and MP_STATION.
static bool IsDriveThroughStopTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t a drive through road stop station?
t | Tile to check |
true
if the tile is a station tile and a drive through road stop Definition at line 234 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by AfterLoadGame(), AfterLoadRoadStops(), CheckFlatLandRoadStop(), ClearTile_Station(), CmdBuildRoad(), CmdRemoveRoadStop(), CopyPaste::CopyArea(), GetAnyRoadBits(), AIRoad::IsDriveThroughRoadStationTile(), RoadStop::IsDriveThroughRoadStopContinuation(), NeighbourHasReachableRoad(), RemoveRoad(), and RemoveRoadStop().
bool IsHangar | ( | TileIndex | t | ) |
Check whether the given tile is a hangar.
t | the tile to of whether it is a hangar. |
Definition at line 62 of file station_cmd.cpp.
References Station::airport, SpecializedStation< Station, false >::GetByTile(), Airport::GetHangarTile(), Airport::GetSpec(), IsAirport(), IsTileType(), MP_STATION, and AirportSpec::nof_depots.
Referenced by AIOrder::GetOrderDestination(), GetOrderTypeByTile(), IsHangarTile(), and AIAirport::IsHangarTile().
static bool IsHangarTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t an hangar tile?
t | Tile to check |
true
if the tile is an hangar Definition at line 327 of file station_map.h.
References IsHangar(), IsTileType(), and MP_STATION.
Referenced by CmdBuildAircraft(), IsDepotTile(), Aircraft::IsInDepot(), and RemoveAirport().
static bool IsOilRig | ( | TileIndex | t | ) | [inline, static] |
Is tile t part of an oilrig?
t | Tile to check |
true
if the tile is an oilrig tile Definition at line 275 of file station_map.h.
References GetStationType().
Referenced by AfterLoadGame(), AIIndustry::GetDockLocation(), GetDockOffset(), AIIndustry::GetHeliportLocation(), and IsWateredTile().
static bool IsRailStation | ( | TileIndex | t | ) | [inline, static] |
Is this station tile a rail station?
t | the tile to get the information from |
Definition at line 93 of file station_map.h.
References GetStationType().
Referenced by CheckFlatLandRailStation(), HasStationRail(), and IsRailStationTile().
static bool IsRailStationTile | ( | TileIndex | t | ) | [inline, static] |
Is this tile a station tile and a rail station?
t | the tile to get the information from |
Definition at line 103 of file station_map.h.
References IsRailStation(), IsTileType(), and MP_STATION.
Referenced by CheckNextTrainTile(), ClearPathReservation(), CmdBuildRailStation(), CmdConvertRail(), FollowTrainReservation(), FreeTrainTrackReservation(), Train::GetCurrentMaxSpeed(), Station::GetPlatformLength(), GetTrainForReservation(), IsCompatibleTrainStationTile(), NPFSaveTargetData(), RemoveFromRailBaseStation(), CYapfCostRailT< Types >::ReservationCost(), CYapfReserveTrack< Types >::ReserveSingleTrack(), SetRailStationPlatformReservation(), Vehicle::ShowVisualEffect(), Station::TileBelongsToRailStation(), and CYapfReserveTrack< Types >::UnreserveSingleTrack().
static bool IsRailWaypoint | ( | TileIndex | t | ) | [inline, static] |
Is this station tile a rail waypoint?
t | the tile to get the information from |
Definition at line 114 of file station_map.h.
References GetStationType().
Referenced by GetOrderTypeByTile(), HasStationRail(), IsRailWaypointTile(), IsValidTileForWaypoint(), and CYapfCostRailT< Types >::PfCalcCost().
static bool IsRailWaypointTile | ( | TileIndex | t | ) | [inline, static] |
Is this tile a station tile and a rail waypoint?
t | the tile to get the information from |
Definition at line 124 of file station_map.h.
References IsRailWaypoint(), IsTileType(), and MP_STATION.
Referenced by CheckNextTrainTile(), GetAxisForNewWaypoint(), and Waypoint::TileBelongsToRailStation().
static bool IsRoadStop | ( | TileIndex | t | ) | [inline, static] |
Is the station at t a road station?
t | Tile to check |
true
if station at the tile is a bus top or a truck stop, false
otherwise Definition at line 203 of file station_map.h.
References IsBusStop(), IsTileType(), IsTruckStop(), and MP_STATION.
Referenced by AfterLoadGame(), CheckFlatLandRoadStop(), CmdBuildRoadStop(), CmdRemoveRoadStop(), IsRoadStopTile(), and AIRoad::RemoveRoadStation().
static bool IsRoadStopTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t a road stop station?
t | Tile to check |
true
if the tile is a station tile and a road stop Definition at line 214 of file station_map.h.
References IsRoadStop(), IsTileType(), and MP_STATION.
Referenced by GetAnyRoadBits(), GetRoadStopDir(), IsDriveThroughStopTile(), AIRoad::IsRoadStationTile(), and IsStandardRoadStopTile().
static bool IsStandardRoadStopTile | ( | TileIndex | t | ) | [inline, static] |
Is tile t a standard (non-drive through) road stop station?
t | Tile to check |
true
if the tile is a station tile and a standard road stop Definition at line 224 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by CanEnterTileOwnerCheck(), CheckCaches(), RoadStop::Enter(), GetTileSingleEntry(), GetTownRoadBits(), RoadVehicle::GetVehicleTrackdir(), RoadStop::Leave(), RoadFindPathToDest(), and VehiclePositionIsAllowed().
static bool IsTruckStop | ( | TileIndex | t | ) | [inline, static] |
Is the station at t a truck stop?
t | Tile to check |
true
if station is a truck stop, false
otherwise Definition at line 181 of file station_map.h.
References GetStationType().
Referenced by AfterLoadGame(), CheckFlatLandRoadStop(), IsRoadStop(), and RemoveRoadStop().
static void MakeAirport | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
byte | section, | |||
WaterClass | wc | |||
) | [inline, static] |
Make the given tile an airport tile.
t | the tile to make a airport | |
o | the owner of the airport | |
sid | the station to which this tile belongs | |
section | the StationGfx to be used for this tile | |
wc | the type of water on this tile |
Definition at line 623 of file station_map.h.
References MakeStation().
Referenced by CmdBuildAirport().
static void MakeBuoy | ( | TileIndex | t, | |
StationID | sid, | |||
WaterClass | wc | |||
) | [inline, static] |
Make the given tile a buoy tile.
t | the tile to make a buoy | |
sid | the station to which this tile belongs | |
wc | the type of water on this tile |
Definition at line 634 of file station_map.h.
References GetTileOwner(), and MakeStation().
Referenced by CmdBuildBuoy().
static void MakeDock | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
DiagDirection | d, | |||
WaterClass | wc | |||
) | [inline, static] |
Make the given tile a dock tile.
t | the tile to make a dock | |
o | the owner of the dock | |
sid | the station to which this tile belongs | |
d | the direction of the dock | |
wc | the type of water on this tile |
Definition at line 650 of file station_map.h.
References DiagDirToAxis(), GFX_DOCK_BASE_WATER_PART, MakeStation(), and TileOffsByDiagDir().
Referenced by CmdBuildDock().
static void MakeDriveThroughRoadStop | ( | TileIndex | t, | |
Owner | station, | |||
Owner | road, | |||
Owner | tram, | |||
StationID | sid, | |||
RoadStopType | rst, | |||
RoadTypes | rt, | |||
Axis | a | |||
) | [inline, static] |
Make the given tile a drivethrough roadstop tile.
t | the tile to make a roadstop | |
station | the owner of the roadstop | |
road | the owner of the road | |
tram | the owner of the tram | |
sid | the station to which this tile belongs | |
rst | the type of roadstop to make this tile | |
rt | the roadtypes on this tile | |
a | the direction of the roadstop |
Definition at line 607 of file station_map.h.
References GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, MakeStation(), ROADSTOP_BUS, ROADTYPE_ROAD, ROADTYPE_TRAM, SetRoadOwner(), and SetRoadTypes().
Referenced by CmdBuildRoadStop().
static void MakeOilrig | ( | TileIndex | t, | |
StationID | sid, | |||
WaterClass | wc | |||
) | [inline, static] |
Make the given tile an oilrig tile.
t | the tile to make an oilrig | |
sid | the station to which this tile belongs | |
wc | the type of water on this tile |
Definition at line 662 of file station_map.h.
References MakeStation(), and OWNER_NONE.
static void MakeRailStation | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
Axis | a, | |||
byte | section, | |||
RailType | rt | |||
) | [inline, static] |
Make the given tile a rail station tile.
t | the tile to make a rail station tile | |
o | the owner of the station | |
sid | the station to which this tile belongs | |
a | the axis of this tile | |
section | the StationGfx to be used for this tile | |
rt | the railtype of this tile |
Definition at line 556 of file station_map.h.
References MakeStation(), SetRailStationReservation(), and SetRailType().
Referenced by CmdBuildRailStation().
static void MakeRailWaypoint | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
Axis | a, | |||
byte | section, | |||
RailType | rt | |||
) | [inline, static] |
Make the given tile a rail waypoint tile.
t | the tile to make a rail waypoint | |
o | the owner of the waypoint | |
sid | the waypoint to which this tile belongs | |
a | the axis of this tile | |
section | the StationGfx to be used for this tile | |
rt | the railtype of this tile |
Definition at line 572 of file station_map.h.
References MakeStation(), SetRailStationReservation(), and SetRailType().
Referenced by CmdBuildRailWaypoint(), and MoveWaypointsToBaseStations().
static void MakeRoadStop | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
RoadStopType | rst, | |||
RoadTypes | rt, | |||
DiagDirection | d | |||
) | [inline, static] |
Make the given tile a roadstop tile.
t | the tile to make a roadstop | |
o | the owner of the roadstop | |
sid | the station to which this tile belongs | |
rst | the type of roadstop to make this tile | |
rt | the roadtypes on this tile | |
d | the direction of the roadstop |
Definition at line 588 of file station_map.h.
References MakeStation(), ROADSTOP_BUS, ROADTYPE_ROAD, ROADTYPE_TRAM, SetRoadOwner(), and SetRoadTypes().
Referenced by CmdBuildRoadStop().
static void MakeStation | ( | TileIndex | t, | |
Owner | o, | |||
StationID | sid, | |||
StationType | st, | |||
byte | section, | |||
WaterClass | wc = WATER_CLASS_INVALID | |||
) | [inline, static] |
Make the given tile a station tile.
t | the tile to make a station tile | |
o | the owner of the station | |
sid | the station to which this tile belongs | |
st | the type this station tile | |
section | the StationGfx to be used for this tile | |
wc | The water class of the station |
Definition at line 533 of file station_map.h.
References _m, _me, Tile::m2, Tile::m3, Tile::m4, Tile::m5, TileExtended::m7, MP_STATION, SB(), SetTileOwner(), SetTileType(), and SetWaterClass().
Referenced by MakeAirport(), MakeBuoy(), MakeDock(), MakeDriveThroughRoadStop(), MakeOilrig(), MakeRailStation(), MakeRailWaypoint(), and MakeRoadStop().
static void SetCustomStationSpecIndex | ( | TileIndex | t, | |
byte | specindex | |||
) | [inline, static] |
Set the custom station spec for this tile.
t | Tile to set the stationspec of. | |
specindex | The new spec. |
Definition at line 482 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
Referenced by CmdBuildRailStation(), CmdBuildRailWaypoint(), and MoveWaypointsToBaseStations().
static void SetRailStationReservation | ( | TileIndex | t, | |
bool | b | |||
) | [inline, static] |
Set the reservation state of the rail station.
t | the station tile | |
b | the reservation state |
Definition at line 406 of file station_map.h.
References _m, HasStationRail(), and SB().
Referenced by AfterLoadGame(), CmdBuildRailWaypoint(), MakeRailStation(), MakeRailWaypoint(), MoveWaypointsToBaseStations(), NPFSaveTargetData(), CYapfReserveTrack< Types >::ReserveRailStationPlatform(), SetRailStationPlatformReservation(), TryReserveRailTrack(), UnreserveRailTrack(), and CYapfReserveTrack< Types >::UnreserveSingleTrack().
static void SetStationGfx | ( | TileIndex | t, | |
StationGfx | gfx | |||
) | [inline, static] |
Set the station graphics of this tile.
t | the tile to update | |
gfx | the new graphics |
Definition at line 81 of file station_map.h.
References _m, IsTileType(), Tile::m5, and MP_STATION.
Referenced by AfterLoadGame(), and CmdBuildRailStation().
static void SetStationTileRandomBits | ( | TileIndex | t, | |
byte | random_bits | |||
) | [inline, static] |
Set the random bits for a station tile.
t | Tile to set random bits for. | |
random_bits | The random bits. |
Definition at line 506 of file station_map.h.
References _m, IsTileType(), MP_STATION, and SB().
Referenced by CmdBuildAirport(), and CmdBuildRailStation().