84 _m[t].
m5 = index >> 16;
85 SB(
_me[t].m6, 2, 4, 0);
static void SetTileOwner(TileIndex tile, Owner owner)
Sets the owner of a tile.
byte m7
Primarily used for newgrf support.
uint16 m2
Primarily used for indices to towns, industries and stations.
static byte GetObjectRandomBits(TileIndex t)
Get the random bits of this tile.
Tile * _m
Tiles of the map.
Contains objects such as transmitters and owned land.
static void SetWaterClass(TileIndex t, WaterClass wc)
Set the water class at a tile.
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 IsObjectType(TileIndex t, ObjectType type)
Check whether the object on a tile is of a specific type.
Types related to object tiles.
static bool IsTileType(TileIndex tile, TileType type)
Checks if a tile is a give tiletype.
WaterClass
classes of water (for WATER_TILE_CLEAR water tile type).
Map accessors for water tiles.
TileExtended * _me
Extended Tiles of the map.
uint16 ObjectType
Types of objects.
uint32 ObjectID
Unique identifier for an object.
uint32 TileIndex
The index/ID of a Tile.
static void SetTileType(TileIndex tile, TileType type)
Set the type of a tile.
static ObjectID GetObjectIndex(TileIndex t)
Get the index of which object this tile is attached to.
ObjectType GetObjectType(TileIndex t)
Gets the ObjectType of the given object tile.
Owner
Enum for all companies/owners.
static void MakeObject(TileIndex t, Owner o, ObjectID index, WaterClass wc, byte random)
Make an Object tile.
static bool IsObjectTypeTile(TileIndex t, ObjectType type)
Check whether a tile is a object tile of a specific type.