OpenTTD Source 20260206-master-g4d4e37dbf1
landscape_type.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef LANDSCAPE_TYPE_H
11#define LANDSCAPE_TYPE_H
12
13#include "core/enum_type.hpp"
14
16enum class LandscapeType : uint8_t {
18 Arctic = 1,
19 Tropic = 2,
20 Toyland = 3,
21};
22using LandscapeTypes = EnumBitSet<LandscapeType, uint8_t>;
23
24static constexpr uint NUM_LANDSCAPE = 4;
25
29enum class BorderFlag : uint8_t {
34 Random,
35};
36using BorderFlags = EnumBitSet<BorderFlag, uint8_t>;
37
39
40#endif /* LANDSCAPE_TYPE_H */
Enum-as-bit-set wrapper.
Type (helpers) for enums.
static constexpr BorderFlags BORDERFLAGS_ALL
Border on all sides.
LandscapeType
Landscape types.
@ Arctic
Landscape with snow levels.
@ Toyland
Landscape with funky industries and vehicles.
@ Tropic
Landscape with distinct rainforests and deserts,.
@ Temperate
Base landscape.
BorderFlag
For storing the water borders which shall be retained.
@ NorthWest
Border on North West.
@ NorthEast
Border on North East.
@ SouthEast
Border on South East.
@ SouthWest
Border on South West.