From c94b9973e60959cdb9bd706bddbf79727fb4dbe7 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 30 Aug 2009 11:40:01 +0000 Subject: (svn r17315) -Codechange: move code related to industry types to separate file --- src/industry_type.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/industry_type.h') diff --git a/src/industry_type.h b/src/industry_type.h index 7921f49a3..bdf241715 100644 --- a/src/industry_type.h +++ b/src/industry_type.h @@ -20,4 +20,17 @@ struct Industry; struct IndustrySpec; struct IndustryTileSpec; +static const IndustryID INVALID_INDUSTRY = 0xFFFF; + +enum { + NEW_INDUSTRYOFFSET = 37, ///< original number of industries + NUM_INDUSTRYTYPES = 64, ///< total number of industries, new and old + INDUSTRYTILE_NOANIM = 0xFF, ///< flag to mark industry tiles as having no animation + NEW_INDUSTRYTILEOFFSET = 175, ///< original number of tiles + INVALID_INDUSTRYTYPE = NUM_INDUSTRYTYPES, ///< one above amount is considered invalid + NUM_INDUSTRYTILES = 512, ///< total number of industry tiles, new and old + INVALID_INDUSTRYTILE = NUM_INDUSTRYTILES, ///< one above amount is considered invalid + INDUSTRY_COMPLETED = 3, ///< final stage of industry construction. +}; + #endif /* INDUSTRY_TYPE_H */ -- cgit v1.2.3-54-g00ecf