00001 /* $Id$ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 00008 */ 00009 00012 #ifndef GOAL_TYPE_H 00013 #define GOAL_TYPE_H 00014 00015 #include "core/enum_type.hpp" 00016 00017 enum { 00018 GOAL_QUESTION_BUTTON_COUNT = 18, 00019 }; 00020 00022 enum GoalType { 00023 GT_NONE, 00024 GT_TILE, 00025 GT_INDUSTRY, 00026 GT_TOWN, 00027 GT_COMPANY, 00028 }; 00029 typedef SimpleTinyEnumT<GoalType, byte> GoalTypeByte; 00030 00031 typedef uint32 GoalTypeID; 00032 static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; 00033 00034 typedef uint16 GoalID; 00035 struct Goal; 00036 00037 extern GoalID _new_goal_id; 00038 00039 #endif /* GOAL_TYPE_H */