OpenTTD Source 20250205-master-gfd85ab1e2c
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 <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef LANDSCAPE_TYPE_H
11#define LANDSCAPE_TYPE_H
12
13#include "core/enum_type.hpp"
14
16enum class LandscapeType : uint8_t {
17 Temperate = 0,
18 Arctic = 1,
19 Tropic = 2,
20 Toyland = 3,
21};
23
24static constexpr uint NUM_LANDSCAPE = 4;
25
29enum class BorderFlag : uint8_t {
30 NorthEast,
31 SouthEast,
32 SouthWest,
33 NorthWest,
34 Random,
35};
37
39
40#endif /* LANDSCAPE_TYPE_H */
Type (helpers) for enums.
static constexpr BorderFlags BORDERFLAGS_ALL
Border on all sides.
LandscapeType
Landscape types.
BorderFlag
For storing the water borders which shall be retained.
@ NorthWest
Border on North West.
@ Random
Randomise borders.
@ NorthEast
Border on North East.
@ SouthEast
Border on South East.
@ SouthWest
Border on South West.