changeset 16200:396fd7ea2ada draft

(svn r20900) -Codechange: Move ProductionLevels enum to industry.h
author frosch <frosch@openttd.org>
date Mon, 04 Oct 2010 20:10:31 +0000
parents a17bf6acf794
children 5841bb9a0b9a
files src/industry.h src/industry_cmd.cpp
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry.h
+++ b/src/industry.h
@@ -23,6 +23,18 @@
 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> {
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -1533,18 +1533,6 @@
 }
 
 /**
- * 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.