OpenTTD Source: Tile::TileBase Struct Reference

OpenTTD Source 15.0-beta1

Data Fields
Tile::TileBase Struct Reference

Data that is stored per tile. More...

## Data Fields
uint8_t | type
| The type (bits 4..7), bridges (2..3), rainforest/desert (0..1)
uint8_t | height
| The height of the northern corner.
uint16_t | m2
| Primarily used for indices to towns, industries and stations.
uint8_t | m1
| Primarily used for ownership information.
uint8_t | m3
| General purpose.
uint8_t | m4
| General purpose.
uint8_t | m5
| 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

The height of the northern corner.

Definition at line 34 of file map_func.h.

Referenced by Tile::height().

## ◆ m1

uint8_t Tile::TileBase::m1

Primarily used for ownership information.

Definition at line 36 of file map_func.h.

Referenced by Tile::m1().

## ◆ m2

uint16_t Tile::TileBase::m2

Primarily used for indices to towns, industries and stations.

Definition at line 35 of file map_func.h.

Referenced by Tile::m2().

## ◆ m3

uint8_t Tile::TileBase::m3

General purpose.

Definition at line 37 of file map_func.h.

Referenced by Tile::m3().

## ◆ m4

uint8_t Tile::TileBase::m4

General purpose.

Definition at line 38 of file map_func.h.

Referenced by Tile::m4().

## ◆ m5

uint8_t Tile::TileBase::m5

General purpose.

Definition at line 39 of file map_func.h.

Referenced by Tile::m5().

## ◆ type

uint8_t Tile::TileBase::type

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

Definition at line 33 of file map_func.h.

Referenced by Tile::type().

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

- src/map_func.h