# goal_type.h

Go to the documentation of this file.

    00001 /* $Id: goal_type.h 26012 2013-11-16 17:41:57Z zuu $ */
    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   GT_STORY_PAGE,
    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 */