59 SB(
_me[t].m6, 2, 4, 0);
81 SB(
_me[t].m6, 2, 4, 0);
static void SetTileOwner(TileIndex tile, Owner owner)
Sets the owner of a tile.
RailType
Enumeration for all possible railtypes.
byte m7
Primarily used for newgrf support.
uint16 m2
Primarily used for indices to towns, industries and stations.
Tile * _m
Tiles of the map.
static void MakeRailTunnel(TileIndex t, Owner o, DiagDirection d, RailType r)
Makes a rail tunnel entrance.
static T SB(T &x, const uint8 s, const uint8 n, const U d)
Set n bits in x starting at bit s to d.
static bool IsTileType(TileIndex tile, TileType type)
Checks if a tile is a give tiletype.
static void SetRoadOwner(TileIndex t, RoadType rt, Owner o)
Set the owner of a specific road type.
TileExtended * _me
Extended Tiles of the map.
DiagDirection
Enumeration for diagonal directions.
bool IsTunnelInWay(TileIndex, int z)
Is there a tunnel in the way in any direction?
RoadTypes
The different roadtypes we support, but then a bitmask of them.
bool IsTunnelInWayDir(TileIndex tile, int z, DiagDirection dir)
Is there a tunnel in the way in the given direction?
static void MakeRoadTunnel(TileIndex t, Owner o, DiagDirection d, RoadTypes r)
Makes a road tunnel entrance.
Tunnel entry/exit and bridge heads.
uint32 TileIndex
The index/ID of a Tile.
A town owns the tile, or a town is expanding.
static void SetTileType(TileIndex tile, TileType type)
Set the type of a tile.
Transport by road vehicle.
static bool IsTunnelTile(TileIndex t)
Is this a tunnel (entrance)?
static bool HasBit(const T x, const uint8 y)
Checks if a bit in a value is set.
Owner
Enum for all companies/owners.
TileIndex GetOtherTunnelEnd(TileIndex)
Gets the other end of the tunnel.
static void SetRoadTypes(TileIndex t, RoadTypes rt)
Set the present road types of a tile.
static bool IsTunnel(TileIndex t)
Is this a tunnel (entrance)?