OpenTTD Source: src/house_type.h Source File

OpenTTD Source 15.3

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
15 typedef uint16_t HouseID;
16 typedef uint16_t HouseClassID;
17
18struct HouseSpec;
19
21 enum 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};
30using HouseRandomTriggers = EnumBitSet<HouseRandomTrigger, uint8_t>;
31
32#endif /* HOUSE_TYPE_H */
EnumBitSet
Enum-as-bit-set wrapper.
Definition enum_type.hpp:177
enum_type.hpp
Type (helpers) for enums.
HouseRandomTrigger
HouseRandomTrigger
Randomisation triggers for houses.
Definition house_type.h:21
HouseClassID
uint16_t HouseClassID
Classes of houses.
Definition house_type.h:16
HouseID
uint16_t HouseID
OpenTTD ID of house types.
Definition house_type.h:15
HouseSpec
Definition house.h:98