goal_type.h

Go to the documentation of this file.
00001 /* $Id: goal_type.h 23827 2012-01-21 12:03:55Z rubidium $ */
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 static const uint32 GOAL_QUESTION_BUTTON_COUNT = 18; 
00018 static const byte   GOAL_QUESTION_TYPE_COUNT   =  4; 
00019 
00021 enum GoalType {
00022   GT_NONE,         
00023   GT_TILE,         
00024   GT_INDUSTRY,     
00025   GT_TOWN,         
00026   GT_COMPANY,      
00027 };
00028 typedef SimpleTinyEnumT<GoalType, byte> GoalTypeByte; 
00029 
00030 typedef uint32 GoalTypeID; 
00031 static const GoalTypeID INVALID_GOALTYPE = 0xFFFFFFFF; 
00032 
00033 typedef uint16 GoalID; 
00034 struct Goal;
00035 
00036 extern GoalID _new_goal_id;
00037 
00038 #endif /* GOAL_TYPE_H */