object_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 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 NEW_OBJECT_OFFSET   =   5;    
00025 static const ObjectType NUM_OBJECTS         = 256;    
00026 static const ObjectType INVALID_OBJECT_TYPE = 0xFFFF; 
00027 
00029 typedef uint16 ObjectID;
00030 
00031 struct Object;
00032 struct ObjectSpec;
00033 
00034 static const ObjectID INVALID_OBJECT = 0xFFFF; 
00035 
00036 #endif /* OBJECT_TYPE_H */

Generated on Wed Apr 13 00:47:51 2011 for OpenTTD by  doxygen 1.6.1