industry_type.h

Go to the documentation of this file.
00001 /* $Id: industry_type.h 25837 2013-10-12 16:32:59Z 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 INDUSTRY_TYPE_H
00013 #define INDUSTRY_TYPE_H
00014 
00015 typedef uint16 IndustryID;
00016 typedef uint16 IndustryGfx;
00017 typedef uint8 IndustryType;
00018 struct Industry;
00019 
00020 struct IndustrySpec;
00021 struct IndustryTileSpec;
00022 
00023 static const IndustryID INVALID_INDUSTRY = 0xFFFF;
00024 
00025 static const IndustryType NUM_INDUSTRYTYPES_PER_GRF = 64;              
00026 
00027 static const IndustryType NEW_INDUSTRYOFFSET     = 37;                
00028 static const IndustryType NUM_INDUSTRYTYPES      = 64;                
00029 static const IndustryType INVALID_INDUSTRYTYPE   = NUM_INDUSTRYTYPES; 
00030 
00031 static const IndustryGfx  NUM_INDUSTRYTILES_PER_GRF = 255;             
00032 
00033 static const IndustryGfx  INDUSTRYTILE_NOANIM    = 0xFF;              
00034 static const IndustryGfx  NEW_INDUSTRYTILEOFFSET = 175;               
00035 static const IndustryGfx  NUM_INDUSTRYTILES      = 512;               
00036 static const IndustryGfx  INVALID_INDUSTRYTILE   = NUM_INDUSTRYTILES; 
00037 
00038 static const int INDUSTRY_COMPLETED = 3; 
00039 
00040 #endif /* INDUSTRY_TYPE_H */