OpenTTD Source: src/landscape_type.h File Reference

OpenTTD Source 15.3

Typedefs | Enumerations | Variables
landscape_type.h File Reference

Types related to the landscape. More...

`#include "core/enum_type.hpp"`

Go to the source code of this file.

## Typedefs
using | LandscapeTypes = EnumBitSet< LandscapeType, uint8_t >
using | BorderFlags = EnumBitSet< BorderFlag, uint8_t >

## Enumerations
enum class | LandscapeType : uint8_t { Temperate = 0 , Arctic = 1 , Tropic = 2 , Toyland = 3 }
| Landscape types. More...
enum class | BorderFlag : uint8_t { NorthEast , SouthEast , SouthWest , NorthWest , Random }
| For storing the water borders which shall be retained. More...

## Variables
static constexpr uint | NUM_LANDSCAPE = 4
static constexpr BorderFlags | BORDERFLAGS_ALL = BorderFlags{BorderFlag::NorthEast, BorderFlag::SouthEast, BorderFlag::SouthWest, BorderFlag::NorthWest}
| Border on all sides.

## Detailed Description

Types related to the landscape.

Definition in file landscape_type.h.

## Typedef Documentation

## ◆ BorderFlags

using BorderFlags = EnumBitSet<BorderFlag, uint8_t>

Definition at line 36 of file landscape_type.h.

## ◆ LandscapeTypes

using LandscapeTypes = EnumBitSet<LandscapeType, uint8_t>

Definition at line 22 of file landscape_type.h.

## Enumeration Type Documentation

## ◆ BorderFlag

enum class BorderFlag : uint8_t
| strong

For storing the water borders which shall be retained.

Enumerator
NorthEast | Border on North East.
SouthEast | Border on South East.
SouthWest | Border on South West.
NorthWest | Border on North West.
Random | Randomise borders.

Definition at line 29 of file landscape_type.h.

## ◆ LandscapeType

enum class LandscapeType : uint8_t
| strong

Landscape types.

Definition at line 16 of file landscape_type.h.

## Variable Documentation

## ◆ BORDERFLAGS_ALL

constexpr BorderFlags BORDERFLAGS_ALL = BorderFlags{BorderFlag::NorthEast, BorderFlag::SouthEast, BorderFlag::SouthWest, BorderFlag::NorthWest}
| staticconstexpr

Border on all sides.

Definition at line 38 of file landscape_type.h.

Referenced by HeightMapNormalize(), and GenerateLandscapeWindow::OnDropdownSelect().

## ◆ NUM_LANDSCAPE

constexpr uint NUM_LANDSCAPE = 4
| staticconstexpr

Definition at line 24 of file landscape_type.h.