mirror of https://github.com/OpenTTD/OpenTTD
(svn r20900) -Codechange: Move ProductionLevels enum to industry.h
parent
286aba3492
commit
8a5571a264
|
@ -22,6 +22,18 @@
|
||||||
typedef Pool<Industry, IndustryID, 64, 64000> IndustryPool;
|
typedef Pool<Industry, IndustryID, 64, 64000> IndustryPool;
|
||||||
extern IndustryPool _industry_pool;
|
extern IndustryPool _industry_pool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Production level maximum, minimum and default values.
|
||||||
|
* It is not a value been really used in order to change, but rather an indicator
|
||||||
|
* of how the industry is behaving.
|
||||||
|
*/
|
||||||
|
enum ProductionLevels {
|
||||||
|
PRODLEVEL_CLOSURE = 0x00, ///< signal set to actually close the industry
|
||||||
|
PRODLEVEL_MINIMUM = 0x04, ///< below this level, the industry is set to be closing
|
||||||
|
PRODLEVEL_DEFAULT = 0x10, ///< default level set when the industry is created
|
||||||
|
PRODLEVEL_MAXIMUM = 0x80, ///< the industry is running at full speed
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines the internal data of a functionnal industry
|
* Defines the internal data of a functionnal industry
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1532,18 +1532,6 @@ static CommandCost CheckIfFarEnoughFromConflictingIndustry(TileIndex tile, int t
|
||||||
return CommandCost();
|
return CommandCost();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Production level maximum, minimum and default values.
|
|
||||||
* It is not a value been really used in order to change, but rather an indicator
|
|
||||||
* of how the industry is behaving.
|
|
||||||
*/
|
|
||||||
enum ProductionLevels {
|
|
||||||
PRODLEVEL_CLOSURE = 0x00, ///< signal set to actually close the industry
|
|
||||||
PRODLEVEL_MINIMUM = 0x04, ///< below this level, the industry is set to be closing
|
|
||||||
PRODLEVEL_DEFAULT = 0x10, ///< default level set when the industry is created
|
|
||||||
PRODLEVEL_MAXIMUM = 0x80, ///< the industry is running at full speed
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Put an industry on the map.
|
* Put an industry on the map.
|
||||||
* @param i Just allocated poolitem, mostly empty.
|
* @param i Just allocated poolitem, mostly empty.
|
||||||
|
|
Loading…
Reference in New Issue