diff options
author | smatz <smatz@openttd.org> | 2009-08-30 11:40:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-30 11:40:01 +0000 |
commit | c94b9973e60959cdb9bd706bddbf79727fb4dbe7 (patch) | |
tree | ca5ba7f3e16517f06140078ae11a064063069387 /src/industry_type.h | |
parent | 86ebf88176f640420c465c58d35ef7ce0b4445f1 (diff) | |
download | openttd-c94b9973e60959cdb9bd706bddbf79727fb4dbe7.tar.xz |
(svn r17315) -Codechange: move code related to industry types to separate file
Diffstat (limited to 'src/industry_type.h')
-rw-r--r-- | src/industry_type.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 */ |