OpenTTD Source
20240917-master-g9ab0a47812
|
debug_inline uint8_t & m5()
General purpose.
debug_inline uint8_t & m3()
General purpose.
void MakeObject(Tile t, Owner o, ObjectID index, WaterClass wc, uint8_t random)
Make an Object tile.
Owner
Enum for all companies/owners.
Wrapper class to abstract away the way the tiles are stored.
debug_inline uint8_t & m4()
General purpose.
debug_inline uint8_t & m7()
Primarily used for newgrf support.
uint32_t ObjectID
Unique identifier for an object.
bool IsObjectType(Tile t, ObjectType type)
Check whether the object on a tile is of a specific type.
debug_inline uint16_t & m2()
Primarily used for indices to towns, industries and stations.
uint16_t ObjectType
Types of objects.
@ MP_OBJECT
Contains objects such as transmitters and owned land.
void SetWaterClass(Tile t, WaterClass wc)
Set the water class at a tile.
debug_inline uint8_t & m6()
General purpose.
void SetTileOwner(Tile tile, Owner owner)
Sets the owner of a tile.
bool IsObjectTypeTile(Tile t, ObjectType type)
Check whether a tile is a object tile of a specific type.
void SetTileType(Tile tile, TileType type)
Set the type of a tile.
ObjectID GetObjectIndex(Tile t)
Get the index of which object this tile is attached to.
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.
WaterClass
classes of water (for WATER_TILE_CLEAR water tile type).
uint8_t GetObjectRandomBits(Tile t)
Get the random bits of this tile.
ObjectType GetObjectType(Tile t)
Gets the ObjectType of the given object tile.