OpenTTD: src/goal_type.h Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

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 {
22 GT_NONE,
23 GT_TILE,
24 GT_INDUSTRY,
25 GT_TOWN,
26 GT_COMPANY,
27 GT_STORY_PAGE,
28 };
29 typedef SimpleTinyEnumT<GoalType, byte> GoalTypeByte;
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 */