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