OpenTTD Source 20250529-master-g10c159a79f
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 <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef HOUSE_TYPE_H
11#define HOUSE_TYPE_H
12
13typedef uint16_t HouseID;
14typedef uint16_t HouseClassID;
15
16struct HouseSpec;
17
19enum class HouseRandomTrigger : uint8_t {
20 /* The tile of the house has been triggered during the tileloop. */
21 TileLoop,
22 /*
23 * The top tile of a (multitile) building has been triggered during and all
24 * the tileloop other tiles of the same building get the same random value.
25 */
26 TileLoopNorth,
27};
29
30#endif /* HOUSE_TYPE_H */
Enum-as-bit-set wrapper.
HouseRandomTrigger
Randomisation triggers for houses.
Definition house_type.h:19
uint16_t HouseClassID
Classes of houses.
Definition house_type.h:14
uint16_t HouseID
OpenTTD ID of house types.
Definition house_type.h:13