OpenTTD Source
20240917-master-g9ab0a47812
|
debug_inline uint8_t & m5()
General purpose.
void SetRoadTypes(Tile t, RoadType road_rt, RoadType tram_rt)
Set the present road types of a tile.
debug_inline uint8_t & m3()
General purpose.
bool IsTunnelTile(Tile t)
Is this a tunnel (entrance)?
Owner
Enum for all companies/owners.
RailType
Enumeration for all possible railtypes.
debug_inline uint16_t & m8()
General purpose.
DiagDirection
Enumeration for diagonal directions.
Wrapper class to abstract away the way the tiles are stored.
bool IsTunnelInWay(TileIndex, int z)
Is there a tunnel in the way in any direction?
debug_inline uint8_t & m4()
General purpose.
debug_inline uint8_t & m7()
Primarily used for newgrf support.
bool IsTunnelInWayDir(TileIndex tile, int z, DiagDirection dir)
Is there a tunnel in the way in the given direction?
@ TRANSPORT_ROAD
Transport by road vehicle.
debug_inline uint16_t & m2()
Primarily used for indices to towns, industries and stations.
void MakeRoadTunnel(Tile t, Owner o, DiagDirection d, RoadType road_rt, RoadType tram_rt)
Makes a road tunnel entrance.
bool IsTunnel(Tile t)
Is this a tunnel (entrance)?
RoadType
The different roadtypes we support.
void MakeRailTunnel(Tile t, Owner o, DiagDirection d, RailType r)
Makes a rail tunnel entrance.
@ MP_TUNNELBRIDGE
Tunnel entry/exit and bridge heads.
@ INVALID_ROADTYPE
flag for invalid roadtype
debug_inline uint8_t & m6()
General purpose.
void SetTileOwner(Tile tile, Owner owner)
Sets the owner of a tile.
@ OWNER_TOWN
A town owns the tile, or a town is expanding.
@ TRANSPORT_RAIL
Transport by train.
void SetRailType(Tile t, RailType r)
Sets the rail type of the given tile.
void SetTileType(Tile tile, TileType type)
Set the type of a tile.
void SetRoadOwner(Tile t, RoadTramType rtt, Owner o)
Set the owner of a specific road type.
constexpr T SB(T &x, const uint8_t s, const uint8_t n, const U d)
Set n bits in x starting at bit s to d.
static debug_inline bool IsTileType(Tile tile, TileType type)
Checks if a tile is a given tiletype.
TileIndex GetOtherTunnelEnd(TileIndex)
Gets the other end of the tunnel.
constexpr debug_inline bool HasBit(const T x, const uint8_t y)
Checks if a bit in a value is set.