12 #ifndef INDUSTRY_TYPE_H 13 #define INDUSTRY_TYPE_H 15 typedef uint16 IndustryID;
16 typedef uint16 IndustryGfx;
17 typedef uint8 IndustryType;
23 static const IndustryID INVALID_INDUSTRY = 0xFFFF;
static const IndustryGfx INVALID_INDUSTRYTILE
one above amount is considered invalid
Defines the internal data of a functional industry.
static const int INDUSTRY_COMPLETED
final stage of industry construction.
static const IndustryGfx NEW_INDUSTRYTILEOFFSET
original number of tiles
static const IndustryGfx NUM_INDUSTRYTILES
total number of industry tiles, new and old
Defines the data structure for constructing industry.
static const IndustryGfx NUM_INDUSTRYTILES_PER_GRF
Maximum number of industry tiles per NewGRF; limited to 255 to allow extending Action3 with an extend...
static const IndustryType INVALID_INDUSTRYTYPE
one above amount is considered invalid
static const IndustryType NUM_INDUSTRYTYPES
total number of industry types, new and old; limited to 240 because we need some special ids like INV...
static const IndustryType NUM_INDUSTRYTYPES_PER_GRF
maximum number of industry types per NewGRF; limited to 128 because bit 7 has a special meaning in so...
static const IndustryType NEW_INDUSTRYOFFSET
original number of industry types
void CheckIndustries()
Verify whether the generated industries are complete, and warn the user if not.
Defines the data structure of each individual tile of an industry.
static const IndustryGfx INDUSTRYTILE_NOANIM
flag to mark industry tiles as having no animation