OpenTTD Source 20260621-master-g720d10536d
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>
 Bitset of LandscapeType elements.
using BorderFlags = EnumBitSet<BorderFlag, uint8_t>
 Bitset of BorderFlag elements.

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>

Bitset of BorderFlag elements.

Definition at line 40 of file landscape_type.h.

◆ LandscapeTypes

Bitset of LandscapeType elements.

Definition at line 24 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 31 of file landscape_type.h.

◆ LandscapeType

enum class LandscapeType : uint8_t
strong

Landscape types.

Enumerator
Temperate 

Base landscape.

Arctic 

Landscape with snow levels.

Tropic 

Landscape with distinct rainforests and deserts,.

Toyland 

Landscape with funky industries and vehicles.

Definition at line 16 of file landscape_type.h.

Variable Documentation

◆ BORDERFLAGS_ALL

◆ NUM_LANDSCAPE

uint NUM_LANDSCAPE = 4
staticconstexpr

Definition at line 26 of file landscape_type.h.