OpenTTD Source 20250205-master-gfd85ab1e2c
|
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. | |
Types related to the landscape.
Definition in file landscape_type.h.
using BorderFlags = EnumBitSet<BorderFlag, uint8_t> |
Definition at line 36 of file landscape_type.h.
using LandscapeTypes = EnumBitSet<LandscapeType, uint8_t> |
Definition at line 22 of file landscape_type.h.
|
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.
|
strong |
Landscape types.
Definition at line 16 of file landscape_type.h.
|
staticconstexpr |
Border on all sides.
Definition at line 38 of file landscape_type.h.
Referenced by HeightMapNormalize().
|
staticconstexpr |
Definition at line 24 of file landscape_type.h.