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 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 enum { 00026 NEW_INDUSTRYOFFSET = 37, 00027 NUM_INDUSTRYTYPES = 64, 00028 INDUSTRYTILE_NOANIM = 0xFF, 00029 NEW_INDUSTRYTILEOFFSET = 175, 00030 INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES, 00031 NUM_INDUSTRYTILES = 512, 00032 INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES, 00033 INDUSTRY_COMPLETED = 3, 00034 }; 00035 00036 #endif /* INDUSTRY_TYPE_H */