goal_type.h

Go to the documentation of this file.
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 enum {
00016   GOAL_QUESTION_BUTTON_COUNT = 18, 
00017 };
00018 
00020 enum GoalType {
00021   GT_NONE,         
00022   GT_TILE,         
00023   GT_INDUSTRY,     
00024   GT_TOWN,         
00025   GT_COMPANY,      
00026 };
00027 typedef SimpleTinyEnumT<GoalType, byte> GoalTypeByte; 
00028 
00029 typedef uint32 GoalTypeID; 
00030 static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; 
00031 
00032 typedef uint16 GoalID; 
00033 struct Goal;
00034 
00035 extern GoalID _new_goal_id;
00036 
00037 #endif /* GOAL_TYPE_H */