OpenTTD Source 20260621-master-g720d10536d
goal_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 GOAL_TYPE_H
11#define GOAL_TYPE_H
12
13#include "core/pool_type.hpp"
14
16enum class GoalQuestionType : uint8_t {
19 Warning = 2,
20 Error = 3,
22};
23
46
49
59
60typedef uint32_t GoalTypeID;
61
64
65struct Goal;
66
67#endif /* GOAL_TYPE_H */
Enum-as-bit-set wrapper.
Wrapper class to abstract away the way the tiles are stored.
Definition map_func.h:25
GoalType
Types of goal destinations.
Definition goal_type.h:51
@ None
Destination is not linked.
Definition goal_type.h:52
uint32_t GoalTypeID
Contains either tile, industry ID, town ID, company ID, or story page ID.
Definition goal_type.h:60
GoalQuestionType
Types of goal questions.
Definition goal_type.h:16
@ Warning
Showing a warning; title: Warning.
Definition goal_type.h:19
@ End
End marker.
Definition goal_type.h:21
@ Error
Showing an error; title: Error.
Definition goal_type.h:20
@ Information
Showing an informational message; title: Information.
Definition goal_type.h:18
@ Question
Asking a simple question; title: Question.
Definition goal_type.h:17
EnumBitSet< GoalQuestionButton, uint32_t, GoalQuestionButton::End > GoalQuestionButtons
Bitset of GoalQuestionButton elements.
Definition goal_type.h:48
GoalQuestionButton
Types of buttons that can be in the question window.
Definition goal_type.h:25
@ Decline
Decline button.
Definition goal_type.h:30
@ Next
Next button.
Definition goal_type.h:35
@ Stop
Stop button.
Definition goal_type.h:36
@ Postpone
Postpone button.
Definition goal_type.h:41
@ Restart
Restart button.
Definition goal_type.h:40
@ Go
Go button.
Definition goal_type.h:38
@ Retry
Retry button.
Definition goal_type.h:33
@ Surrender
Surrender button.
Definition goal_type.h:42
@ Yes
Yes button.
Definition goal_type.h:29
@ Continue
Continue button.
Definition goal_type.h:39
@ Ok
OK button.
Definition goal_type.h:27
@ Start
Start button.
Definition goal_type.h:37
@ No
No button.
Definition goal_type.h:28
@ Accept
Accept button.
Definition goal_type.h:31
@ Close
Close button.
Definition goal_type.h:43
@ Previous
Previous button.
Definition goal_type.h:34
@ Cancel
Cancel button.
Definition goal_type.h:26
@ Ignore
Ignore button.
Definition goal_type.h:32
PoolID< uint16_t, struct GoalIDTag, 64000, 0xFFFF > GoalID
ID of a goal.
Definition goal_type.h:63
Definition of Pool, structure used to access PoolItems, and PoolItem, base structure for Vehicle,...
Struct about goals, current and completed.
Definition goal_base.h:22
Defines the internal data of a functional industry.
Definition industry.h:64
Templated helper to make a PoolID a single POD value.
Definition pool_type.hpp:50
Struct about stories, current and completed.
Definition story_base.h:162
Town data structure.
Definition town.h:64