# object_type.h

Go to the documentation of this file.

    00001 /* $Id: object_type.h 25844 2013-10-12 16:35:50Z frosch $ */
    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 OBJECT_TYPE_H
    00013 #define OBJECT_TYPE_H
    00014
    00016 typedef uint16 ObjectType;
    00017
    00018 static const ObjectType OBJECT_TRANSMITTER  =   0;
    00019 static const ObjectType OBJECT_LIGHTHOUSE   =   1;
    00020 static const ObjectType OBJECT_STATUE       =   2;
    00021 static const ObjectType OBJECT_OWNED_LAND   =   3;
    00022 static const ObjectType OBJECT_HQ           =   4;
    00023
    00024 static const ObjectType NUM_OBJECTS_PER_GRF = 255;
    00025
    00026 static const ObjectType NEW_OBJECT_OFFSET   =   5;
    00027 static const ObjectType NUM_OBJECTS         = 64000;
    00028 static const ObjectType INVALID_OBJECT_TYPE = 0xFFFF;
    00029
    00031 typedef uint32 ObjectID;
    00032
    00033 struct Object;
    00034 struct ObjectSpec;
    00035
    00036 static const ObjectID INVALID_OBJECT = 0xFFFFFFFF;
    00037
    00038 #endif /* OBJECT_TYPE_H */