OpenTTD Source
12.0-beta2
|
#include "rail_map.h"
#include "road_map.h"
#include "water_map.h"
#include "station_func.h"
#include "rail.h"
#include "road.h"
Go to the source code of this file.
Typedefs | |
typedef byte | StationGfx |
Index of station graphics. More... | |
Functions | |
static StationID | GetStationIndex (TileIndex t) |
Get StationID from a tile. More... | |
static StationType | GetStationType (TileIndex t) |
Get the station type of this tile. More... | |
static RoadStopType | GetRoadStopType (TileIndex t) |
Get the road stop type of this tile. More... | |
static StationGfx | GetStationGfx (TileIndex t) |
Get the station graphics of this tile. More... | |
static void | SetStationGfx (TileIndex t, StationGfx gfx) |
Set the station graphics of this tile. More... | |
static bool | IsRailStation (TileIndex t) |
Is this station tile a rail station? More... | |
static bool | IsRailStationTile (TileIndex t) |
Is this tile a station tile and a rail station? More... | |
static bool | IsRailWaypoint (TileIndex t) |
Is this station tile a rail waypoint? More... | |
static bool | IsRailWaypointTile (TileIndex t) |
Is this tile a station tile and a rail waypoint? More... | |
static bool | HasStationRail (TileIndex t) |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint? More... | |
static bool | HasStationTileRail (TileIndex t) |
Has this station tile a rail? In other words, is this station tile a rail station or rail waypoint? More... | |
static bool | IsAirport (TileIndex t) |
Is this station tile an airport? More... | |
static bool | IsAirportTile (TileIndex t) |
Is this tile a station tile and an airport tile? More... | |
bool | IsHangar (TileIndex t) |
Check whether the given tile is a hangar. More... | |
static bool | IsTruckStop (TileIndex t) |
Is the station at t a truck stop? More... | |
static bool | IsBusStop (TileIndex t) |
Is the station at t a bus stop? More... | |
static bool | IsRoadStop (TileIndex t) |
Is the station at t a road station? More... | |
static bool | IsRoadStopTile (TileIndex t) |
Is tile t a road stop station? More... | |
static bool | IsStandardRoadStopTile (TileIndex t) |
Is tile t a standard (non-drive through) road stop station? More... | |
static bool | IsDriveThroughStopTile (TileIndex t) |
Is tile t a drive through road stop station? More... | |
static StationGfx | GetAirportGfx (TileIndex t) |
Get the station graphics of this airport tile. More... | |
static DiagDirection | GetRoadStopDir (TileIndex t) |
Gets the direction the road stop entrance points towards. More... | |
static bool | IsOilRig (TileIndex t) |
Is tile t part of an oilrig? More... | |
static bool | IsDock (TileIndex t) |
Is tile t a dock tile? More... | |
static bool | IsDockTile (TileIndex t) |
Is tile t a dock tile? More... | |
static bool | IsBuoy (TileIndex t) |
Is tile t a buoy tile? More... | |
static bool | IsBuoyTile (TileIndex t) |
Is tile t a buoy tile? More... | |
static bool | IsHangarTile (TileIndex t) |
Is tile t an hangar tile? More... | |
static Axis | GetRailStationAxis (TileIndex t) |
Get the rail direction of a rail station. More... | |
static Track | GetRailStationTrack (TileIndex t) |
Get the rail track of a rail station tile. More... | |
static TrackBits | GetRailStationTrackBits (TileIndex t) |
Get the trackbits of a rail station tile. More... | |
static bool | IsCompatibleTrainStationTile (TileIndex test_tile, TileIndex station_tile) |
Check if a tile is a valid continuation to a railstation tile. More... | |
static bool | HasStationReservation (TileIndex t) |
Get the reservation state of the rail station. More... | |
static void | SetRailStationReservation (TileIndex t, bool b) |
Set the reservation state of the rail station. More... | |
static TrackBits | GetStationReservationTrackBits (TileIndex t) |
Get the reserved track bits for a waypoint. More... | |
static DiagDirection | GetDockDirection (TileIndex t) |
Get the direction of a dock. More... | |
static TileIndexDiffC | GetDockOffset (TileIndex t) |
Get the tileoffset from this tile a ship should target to get to this dock. More... | |
static bool | IsCustomStationSpecIndex (TileIndex t) |
Is there a custom rail station spec on this tile? More... | |
static void | SetCustomStationSpecIndex (TileIndex t, byte specindex) |
Set the custom station spec for this tile. More... | |
static uint | GetCustomStationSpecIndex (TileIndex t) |
Get the custom station spec for this tile. More... | |
static void | SetStationTileRandomBits (TileIndex t, byte random_bits) |
Set the random bits for a station tile. More... | |
static byte | GetStationTileRandomBits (TileIndex t) |
Get the random bits of a station tile. More... | |
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. More... | |
static void | MakeRailStation (TileIndex t, Owner o, StationID sid, Axis a, byte section, RailType rt) |
Make the given tile a rail station tile. More... | |
static void | MakeRailWaypoint (TileIndex t, Owner o, StationID sid, Axis a, byte section, RailType rt) |
Make the given tile a rail waypoint tile. More... | |
static void | MakeRoadStop (TileIndex t, Owner o, StationID sid, RoadStopType rst, RoadType road_rt, RoadType tram_rt, DiagDirection d) |
Make the given tile a roadstop tile. More... | |
static void | MakeDriveThroughRoadStop (TileIndex t, Owner station, Owner road, Owner tram, StationID sid, RoadStopType rst, RoadType road_rt, RoadType tram_rt, Axis a) |
Make the given tile a drivethrough roadstop tile. More... | |
static void | MakeAirport (TileIndex t, Owner o, StationID sid, byte section, WaterClass wc) |
Make the given tile an airport tile. More... | |
static void | MakeBuoy (TileIndex t, StationID sid, WaterClass wc) |
Make the given tile a buoy tile. More... | |
static void | MakeDock (TileIndex t, Owner o, StationID sid, DiagDirection d, WaterClass wc) |
Make the given tile a dock tile. More... | |
static void | MakeOilrig (TileIndex t, StationID sid, WaterClass wc) |
Make the given tile an oilrig tile. More... | |
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 20 of file station_map.h.
|
inlinestatic |
Get the station graphics of this airport tile.
t | the tile to query |
Definition at line 244 of file station_map.h.
References GetStationGfx(), GetTranslatedAirportTileID(), and IsAirport().
Referenced by GetAirportTileIDAtOffset(), AirportTileSpec::GetByTile(), NIHAirportTile::GetGRFID(), NIHAirportTile::GetSpec(), and NIHAirportTile::IsInspectable().
|
inlinestatic |
Get the custom station spec for this tile.
t | Tile to query |
Definition at line 493 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
Referenced by FindRailStationEnd().
|
inlinestatic |
Get the direction of a dock.
t | Tile to query |
Definition at line 429 of file station_map.h.
References GetStationGfx(), GFX_DOCK_BASE_WATER_PART, and IsDock().
Referenced by FindDockLandPart(), GetDockOffset(), and RemoveDock().
|
inlinestatic |
Get the tileoffset from this tile a ship should target to get to this dock.
t | Tile to query |
Definition at line 443 of file station_map.h.
References DIAGDIR_END, GetDockDirection(), IsBuoy(), IsDock(), IsOilRig(), IsTileType(), and MP_STATION.
Get the rail direction of a rail station.
t | Tile to query |
Definition at line 337 of file station_map.h.
References AXIS_X, AXIS_Y, GetStationGfx(), HasBit(), and HasStationRail().
Referenced by FindRailStationEnd(), GetAxisForNewWaypoint(), Station::GetPlatformLength(), GetRailStationTrack(), GetRailStationTrackBits(), IsCompatibleTrainStationTile(), and SetRailStationPlatformReservation().
Get the rail track of a rail station tile.
t | Tile to query |
Definition at line 349 of file station_map.h.
References AxisToTrack(), and GetRailStationAxis().
Referenced by CmdConvertRail(), and GetRailTrackBitsUniversal().
Get the trackbits of a rail station tile.
t | Tile to query |
Definition at line 360 of file station_map.h.
References AxisToTrackBits(), and GetRailStationAxis().
Referenced by GetStationReservationTrackBits().
|
inlinestatic |
Gets the direction the road stop entrance points towards.
t | the tile of the road stop |
Definition at line 257 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanEnterNewTile(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanExitOldTile(), CheckFlatLandRoadStop(), RoadStop::Entry::CheckIntegrity(), RoadStop::ClearDriveThrough(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::ForcedReverse(), GetAnyRoadBits(), GetTileSingleEntry(), RoadVehicle::GetVehicleTrackdir(), RoadStop::IsDriveThroughRoadStopContinuation(), RoadStop::MakeDriveThrough(), and RoadStop::Entry::Rebuild().
|
inlinestatic |
Get the road stop type of this tile.
t | the tile to query |
Definition at line 56 of file station_map.h.
References GetStationType().
Referenced by RoadStop::ClearDriveThrough(), RoadStop::MakeDriveThrough(), and CYapfCostRoadT< Types >::OneTileCost().
|
inlinestatic |
Get the station graphics of this tile.
t | the tile to query |
Definition at line 68 of file station_map.h.
References _m, IsTileType(), Tile::m5, and MP_STATION.
Referenced by FindDockLandPart(), GetAirportGfx(), GetDockDirection(), GetRailStationAxis(), GetRoadStopDir(), IsDriveThroughStopTile(), IsStandardRoadStopTile(), and IsValidDockingDirectionForDock().
|
inlinestatic |
Get StationID from a tile.
t | Tile to query station ID from |
Definition at line 28 of file station_map.h.
References _m, IsTileType(), Tile::m2, and MP_STATION.
Referenced by CheckFlatLandRailStation(), CheckFlatLandRoadStop(), FindRailStationEnd(), ForAllStationsAroundTiles(), FreeTrainTrackReservation(), BaseStation::GetByTile(), DepotWindow::GetDepotIndex(), GetNearbyAirportTileInformation(), GetOrderCmdFromTile(), GetTileHighlightType(), IsCompatibleTrainStationTile(), RoadStop::IsDriveThroughRoadStopContinuation(), IsShipDestinationTile(), IsValidTileForWaypoint(), MoveBuoysToWaypoints(), Station::RecomputeCatchment(), StationRect::ScanForStationTiles(), NIHStation::SetStringParameters(), NIHAirportTile::SetStringParameters(), Waypoint::TileBelongsToRailStation(), and Station::TileBelongsToRailStation().
Get the reserved track bits for a waypoint.
t | the tile |
Definition at line 417 of file station_map.h.
References GetRailStationTrackBits(), HasStationReservation(), and TRACK_BIT_NONE.
Referenced by GetReservedTrackbits().
|
inlinestatic |
Get the random bits of a station tile.
t | Tile to query |
Definition at line 517 of file station_map.h.
References _m, GB(), IsTileType(), and MP_STATION.
Referenced by AirportTileScopeResolver::GetRandomBits(), and StationScopeResolver::GetRandomBits().
|
inlinestatic |
Get the station type of this tile.
t | the tile to query |
Definition at line 44 of file station_map.h.
References _me, GB(), IsTileType(), and MP_STATION.
Referenced by ClearTile_Station(), GetRoadStopType(), GetSmallMapRoutesPixels(), GetTileCatchmentRadius(), IsAirport(), IsBuoy(), IsBusStop(), IsDock(), IsDockTile(), RoadStop::IsDriveThroughRoadStopContinuation(), IsOilRig(), IsRailStation(), IsRailWaypoint(), and IsTruckStop().
|
inlinestatic |
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 135 of file station_map.h.
References IsRailStation(), and IsRailWaypoint().
Referenced by CmdConvertRail(), FindRailStationEnd(), GetRailStationAxis(), GetRailTrackBitsUniversal(), GetReservedTrackbits(), GetTileRailType(), HasStationReservation(), HasStationTileRail(), SetRailStationReservation(), TryReserveRailTrack(), and UnreserveRailTrack().
|
inlinestatic |
Get the reservation state of the rail station.
t | the station tile |
Definition at line 393 of file station_map.h.
References _me, HasBit(), and HasStationRail().
Referenced by FollowReservation(), GetStationReservationTrackBits(), CYapfCostRailT< Types >::IsAnyStationTileReserved(), CYapfReserveTrack< Types >::ReserveRailStationPlatform(), and TryReserveRailTrack().
|
inlinestatic |
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 146 of file station_map.h.
References HasStationRail(), IsTileType(), and MP_STATION.
Referenced by CanEnterTileOwnerCheck(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::FollowTileExit(), GetCustomStationSpecIndex(), IsCustomStationSpecIndex(), RemoveFromRailBaseStation(), and SetCustomStationSpecIndex().
|
inlinestatic |
Is this station tile an airport?
t | the tile to get the information from |
Definition at line 157 of file station_map.h.
References GetStationType().
Referenced by GetAirportGfx(), GetNearbyAirportTileInformation(), IsAirportTile(), and IsHangar().
|
inlinestatic |
Is this tile a station tile and an airport tile?
t | the tile to get the information from |
Definition at line 167 of file station_map.h.
References IsAirport(), IsTileType(), and MP_STATION.
Referenced by FloodVehicleProc(), and FloodVehicles().
|
inlinestatic |
Is tile t a buoy tile?
t | Tile to check |
true
if the tile is a buoy Definition at line 306 of file station_map.h.
References GetStationType().
Referenced by GetDockOffset(), and IsBuoyTile().
|
inlinestatic |
Is tile t a buoy tile?
t | Tile to check |
true
if the tile is a buoy Definition at line 316 of file station_map.h.
References IsBuoy(), IsTileType(), and MP_STATION.
Referenced by GetOrderCmdFromTile().
|
inlinestatic |
Is the station at t a bus stop?
t | Tile to check |
true
if station is a bus stop, false
otherwise Definition at line 191 of file station_map.h.
References GetStationType().
Referenced by IsRoadStop().
|
inlinestatic |
Check if a tile is a valid continuation to a railstation tile.
The tile test_tile is a valid continuation to station_tile, if all of the following are true:
Definition at line 378 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().
|
inlinestatic |
Is there a custom rail station spec on this tile?
t | Tile to query |
Definition at line 469 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
|
inlinestatic |
Is tile t a dock tile?
t | Tile to check |
true
if the tile is a dock Definition at line 285 of file station_map.h.
References GetStationType().
Referenced by GetDockDirection(), and GetDockOffset().
|
inlinestatic |
Is tile t a dock tile?
t | Tile to check |
true
if the tile is a dock Definition at line 295 of file station_map.h.
References GetStationType(), IsTileType(), and MP_STATION.
Referenced by CheckForDockingTile(), FindDockLandPart(), IsShipDestinationTile(), IsValidDockingDirectionForDock(), and RemoveDock().
|
inlinestatic |
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 233 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by AfterLoadRoadStops(), CanFollowRoad(), CheckFlatLandRoadStop(), GetAnyRoadBits(), RoadStop::IsDriveThroughRoadStopContinuation(), CYapfCostRoadT< Types >::OneTileCost(), 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 77 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 IsHangarTile().
|
inlinestatic |
Is tile t an hangar tile?
t | Tile to check |
true
if the tile is an hangar Definition at line 326 of file station_map.h.
References IsHangar(), IsTileType(), and MP_STATION.
Referenced by IsDepotTile(), and Aircraft::IsInDepot().
|
inlinestatic |
Is tile t part of an oilrig?
t | Tile to check |
true
if the tile is an oilrig tile Definition at line 274 of file station_map.h.
References GetStationType().
Referenced by CheckForDockingTile(), GetDockOffset(), and IsShipDestinationTile().
|
inlinestatic |
Is this station tile a rail station?
t | the tile to get the information from |
Definition at line 92 of file station_map.h.
References GetStationType().
Referenced by CheckFlatLandRailStation(), HasStationRail(), IsRailStationTile(), and TryReserveRailTrack().
|
inlinestatic |
Is this tile a station tile and a rail station?
t | the tile to get the information from |
Definition at line 102 of file station_map.h.
References IsRailStation(), IsTileType(), and MP_STATION.
Referenced by ClearPathReservation(), CmdConvertRail(), FollowTrainReservation(), FreeTrainReservation(), FreeTrainTrackReservation(), Station::GetPlatformLength(), GetTrainForReservation(), IsCompatibleTrainStationTile(), NPFSaveTargetData(), CYapfReserveTrack< Types >::ReserveSingleTrack(), RestoreTrainReservation(), SetRailStationPlatformReservation(), Station::TileBelongsToRailStation(), and CYapfReserveTrack< Types >::UnreserveSingleTrack().
|
inlinestatic |
Is this station tile a rail waypoint?
t | the tile to get the information from |
Definition at line 113 of file station_map.h.
References GetStationType().
Referenced by HasStationRail(), IsRailWaypointTile(), and IsValidTileForWaypoint().
|
inlinestatic |
Is this tile a station tile and a rail waypoint?
t | the tile to get the information from |
Definition at line 123 of file station_map.h.
References IsRailWaypoint(), IsTileType(), and MP_STATION.
Referenced by GetAxisForNewWaypoint(), GetOrderCmdFromTile(), and Waypoint::TileBelongsToRailStation().
|
inlinestatic |
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 202 of file station_map.h.
References IsBusStop(), IsTileType(), IsTruckStop(), and MP_STATION.
Referenced by CheckFlatLandRoadStop(), and IsRoadStopTile().
|
inlinestatic |
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 213 of file station_map.h.
References IsRoadStop(), IsTileType(), and MP_STATION.
Referenced by CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::FollowTileExit(), GetAnyRoadBits(), GetRoadStopDir(), IsDriveThroughStopTile(), and IsStandardRoadStopTile().
|
inlinestatic |
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 223 of file station_map.h.
References GetStationGfx(), GFX_TRUCK_BUS_DRIVETHROUGH_OFFSET, and IsRoadStopTile().
Referenced by CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanEnterNewTile(), CanEnterTileOwnerCheck(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::CanExitOldTile(), RoadStop::Enter(), CFollowTrackT< Ttr_type_, VehicleType, T90deg_turns_allowed_, Tmask_reserved_tracks >::ForcedReverse(), RoadStop::GetNextRoadStop(), GetTileSingleEntry(), GetTownRoadBits(), RoadVehicle::GetVehicleTrackdir(), and RoadStop::Leave().
|
inlinestatic |
Is the station at t a truck stop?
t | Tile to check |
true
if station is a truck stop, false
otherwise Definition at line 180 of file station_map.h.
References GetStationType().
Referenced by CheckFlatLandRoadStop(), IsRoadStop(), and RemoveRoadStop().
|
inlinestatic |
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 626 of file station_map.h.
References MakeStation().
|
inlinestatic |
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 637 of file station_map.h.
References GetTileOwner(), and MakeStation().
|
inlinestatic |
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 653 of file station_map.h.
References MakeStation().
|
inlinestatic |
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 |
road_rt | the road roadtype on this tile |
tram_rt | the tram roadtype on this tile |
a | the direction of the roadstop |
Definition at line 610 of file station_map.h.
References MakeStation(), and ROADSTOP_BUS.
|
inlinestatic |
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 665 of file station_map.h.
References MakeStation(), and OWNER_NONE.
|
inlinestatic |
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 557 of file station_map.h.
References MakeStation().
|
inlinestatic |
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 573 of file station_map.h.
References MakeStation().
|
inlinestatic |
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 |
road_rt | the road roadtype on this tile |
tram_rt | the tram roadtype on this tile |
d | the direction of the roadstop |
Definition at line 590 of file station_map.h.
References MakeStation(), and ROADSTOP_BUS.
|
inlinestatic |
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 532 of file station_map.h.
References _m, _me, Tile::m2, Tile::m3, Tile::m4, Tile::m5, TileExtended::m7, TileExtended::m8, MP_STATION, SB(), SetDockingTile(), SetTileOwner(), SetTileType(), and SetWaterClass().
Referenced by MakeAirport(), MakeBuoy(), MakeDock(), MakeDriveThroughRoadStop(), MakeOilrig(), MakeRailStation(), MakeRailWaypoint(), and MakeRoadStop().
|
inlinestatic |
Set the custom station spec for this tile.
t | Tile to set the stationspec of. |
specindex | The new spec. |
Definition at line 481 of file station_map.h.
References _m, HasStationTileRail(), and Tile::m4.
|
inlinestatic |
Set the reservation state of the rail station.
t | the station tile |
b | the reservation state |
Definition at line 405 of file station_map.h.
References _me, HasStationRail(), and SB().
Referenced by NPFSaveTargetData(), CYapfReserveTrack< Types >::ReserveRailStationPlatform(), SetRailStationPlatformReservation(), TryReserveRailTrack(), UnreserveRailTrack(), and CYapfReserveTrack< Types >::UnreserveSingleTrack().
|
inlinestatic |
Set the station graphics of this tile.
t | the tile to update |
gfx | the new graphics |
Definition at line 80 of file station_map.h.
References _m, IsTileType(), Tile::m5, and MP_STATION.
|
inlinestatic |
Set the random bits for a station tile.
t | Tile to set random bits for. |
random_bits | The random bits. |
Definition at line 505 of file station_map.h.
References _m, IsTileType(), MP_STATION, and SB().