OpenTTD
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 <http://www.gnu.org/licenses/>.
6  */
7 
10 #ifndef GOAL_TYPE_H
11 #define GOAL_TYPE_H
12 
13 #include "core/enum_type.hpp"
14 
15 static const uint32 GOAL_QUESTION_BUTTON_COUNT = 18;
16 static const byte GOAL_QUESTION_TYPE_COUNT = 4;
17 
19 enum GoalType : byte {
26 };
27 
28 typedef uint32 GoalTypeID;
29 static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF;
30 
31 typedef uint16 GoalID;
32 struct Goal;
33 
34 extern GoalID _new_goal_id;
35 
36 #endif /* GOAL_TYPE_H */
Destination is an industry.
Definition: goal_type.h:22
uint16 GoalID
ID of a goal.
Definition: goal_type.h:31
Struct about goals, current and completed.
Definition: goal_base.h:21
Type (helpers) for enums.
Destination is a tile.
Definition: goal_type.h:21
GoalType
Types of goal destinations.
Definition: goal_type.h:19
static const GoalTypeID INVALID_GOALTYPE
Invalid/unknown index of GoalType.
Definition: goal_type.h:29
Destination is a town.
Definition: goal_type.h:23
Destination is not linked.
Definition: goal_type.h:20
Destination is a company.
Definition: goal_type.h:24
Destination is a story page.
Definition: goal_type.h:25
static const uint32 GOAL_QUESTION_BUTTON_COUNT
Amount of buttons available.
Definition: goal_type.h:15
static const byte GOAL_QUESTION_TYPE_COUNT
Amount of question types.
Definition: goal_type.h:16
uint32 GoalTypeID
Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)
Definition: goal_type.h:28