OpenTTD Source 20251213-master-g1091fa6071
house_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
10#ifndef HOUSE_TYPE_H
11#define HOUSE_TYPE_H
12
13#include "core/enum_type.hpp"
14
15typedef uint16_t HouseID;
16typedef uint16_t HouseClassID;
17
18struct HouseSpec;
19
21enum class HouseRandomTrigger : uint8_t {
22 /* The tile of the house has been triggered during the tileloop. */
23 TileLoop,
24 /*
25 * The top tile of a (multitile) building has been triggered during and all
26 * the tileloop other tiles of the same building get the same random value.
27 */
28 TileLoopNorth,
29};
31
32#endif /* HOUSE_TYPE_H */
Enum-as-bit-set wrapper.
Type (helpers) for enums.
HouseRandomTrigger
Randomisation triggers for houses.
Definition house_type.h:21
uint16_t HouseClassID
Classes of houses.
Definition house_type.h:16
uint16_t HouseID
OpenTTD ID of house types.
Definition house_type.h:15