OpenTTD Source 20250205-master-gfd85ab1e2c
Tile::TileBase Struct Reference

Data that is stored per tile. More...

Data Fields

uint8_t type = 0
 The type (bits 4..7), bridges (2..3), rainforest/desert (0..1)
 
uint8_t height = 0
 The height of the northern corner.
 
uint16_t m2 = 0
 Primarily used for indices to towns, industries and stations.
 
uint8_t m1 = 0
 Primarily used for ownership information.
 
uint8_t m3 = 0
 General purpose.
 
uint8_t m4 = 0
 General purpose.
 
uint8_t m5 = 0
 General purpose.
 

Detailed Description

Data that is stored per tile.

Also used TileExtended for this. Look at docs/landscape.html for the exact meaning of the members.

Definition at line 32 of file map_func.h.

Field Documentation

◆ height

uint8_t Tile::TileBase::height = 0

The height of the northern corner.

Definition at line 34 of file map_func.h.

◆ m1

uint8_t Tile::TileBase::m1 = 0

Primarily used for ownership information.

Definition at line 36 of file map_func.h.

◆ m2

uint16_t Tile::TileBase::m2 = 0

Primarily used for indices to towns, industries and stations.

Definition at line 35 of file map_func.h.

◆ m3

uint8_t Tile::TileBase::m3 = 0

General purpose.

Definition at line 37 of file map_func.h.

◆ m4

uint8_t Tile::TileBase::m4 = 0

General purpose.

Definition at line 38 of file map_func.h.

◆ m5

uint8_t Tile::TileBase::m5 = 0

General purpose.

Definition at line 39 of file map_func.h.

◆ type

uint8_t Tile::TileBase::type = 0

The type (bits 4..7), bridges (2..3), rainforest/desert (0..1)

Definition at line 33 of file map_func.h.


The documentation for this struct was generated from the following file: