summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-04 20:10:31 +0000
committerfrosch <frosch@openttd.org>2010-10-04 20:10:31 +0000
commit8a5571a2646eae21aa45e34e0d2ba173d971388e (patch)
tree6e605473617285d0f688d63d7b8f65d438c28a4e /src
parent286aba3492d8986c052b71d657470fad848274ae (diff)
downloadopenttd-8a5571a2646eae21aa45e34e0d2ba173d971388e.tar.xz
(svn r20900) -Codechange: Move ProductionLevels enum to industry.h
Diffstat (limited to 'src')
-rw-r--r--src/industry.h12
-rw-r--r--src/industry_cmd.cpp12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/industry.h b/src/industry.h
index ccec91788..364c3b31b 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -23,6 +23,18 @@ typedef Pool<Industry, IndustryID, 64, 64000> IndustryPool;
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
*/
struct Industry : IndustryPool::PoolItem<&_industry_pool> {
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 8e86295d0..5e0d0f798 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1533,18 +1533,6 @@ static CommandCost CheckIfFarEnoughFromConflictingIndustry(TileIndex tile, int t
}
/**
- * 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.
* @param i Just allocated poolitem, mostly empty.
* @param tile North tile of the industry.