(svn r17315) -Codechange: move code related to industry types to separate file

This commit is contained in:
smatz
2009-08-30 11:40:01 +00:00
parent 54f5962af2
commit 1889ebff85
6 changed files with 264 additions and 234 deletions

View File

@@ -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 */