OpenTTD
goal_type.h
Go to the documentation of this file.
1 /* $Id: goal_type.h 26012 2013-11-16 17:41:57Z zuu $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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/>.
8  */
9 
12 #ifndef GOAL_TYPE_H
13 #define GOAL_TYPE_H
14 
15 #include "core/enum_type.hpp"
16 
17 static const uint32 GOAL_QUESTION_BUTTON_COUNT = 18;
18 static const byte GOAL_QUESTION_TYPE_COUNT = 4;
19 
21 enum GoalType {
28 };
30 
31 typedef uint32 GoalTypeID;
32 static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF;
33 
34 typedef uint16 GoalID;
35 struct Goal;
36 
37 extern GoalID _new_goal_id;
38 
39 #endif /* GOAL_TYPE_H */
Destination is a story page.
Definition: goal_type.h:27
Destination is a company.
Definition: goal_type.h:26
uint16 GoalID
ID of a goal.
Definition: goal_type.h:34
Destination is a town.
Definition: goal_type.h:25
Destination is not linked.
Definition: goal_type.h:22
Struct about goals, current and completed.
Definition: goal_base.h:23
Type (helpers) for enums.
static const GoalTypeID INVALID_GOALTYPE
Invalid/unknown index of GoalType.
Definition: goal_type.h:32
Destination is an industry.
Definition: goal_type.h:24
GoalType
Types of goal destinations.
Definition: goal_type.h:21
Destination is a tile.
Definition: goal_type.h:23
static const uint32 GOAL_QUESTION_BUTTON_COUNT
Amount of buttons available.
Definition: goal_type.h:17
static const byte GOAL_QUESTION_TYPE_COUNT
Amount of question types.
Definition: goal_type.h:18
SimpleTinyEnumT< GoalType, byte > GoalTypeByte
The GoalType packed into a byte for savegame purposes.
Definition: goal_type.h:29
uint32 GoalTypeID
Contains either tile, industry ID, town ID or company ID (or INVALID_GOALTYPE)
Definition: goal_type.h:31