summaryrefslogtreecommitdiff
path: root/industry.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-04-10 16:20:47 +0000
committerbelugas <belugas@openttd.org>2006-04-10 16:20:47 +0000
commit8166a531792c2e9cd7f789618879658941f17010 (patch)
treebd597dfe8526a841781769ceeed77ca4ef701eea /industry.h
parenta9727602943e2fb948ba8c297f960608aa02a193 (diff)
downloadopenttd-8166a531792c2e9cd7f789618879658941f17010.tar.xz
(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType. Cleanup step toward bringing accessors [G|S]etIndustrype
Diffstat (limited to 'industry.h')
-rw-r--r--industry.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/industry.h b/industry.h
index d2e67304c..7f3d216b9 100644
--- a/industry.h
+++ b/industry.h
@@ -65,6 +65,8 @@ VARDEF int _total_industries; // For the AI: the amount of industries active
VARDEF uint16 *_industry_sort;
VARDEF bool _industry_sort_dirty;
+typedef uint8 IndustryType;
+
void DeleteIndustry(Industry *is);
enum {
@@ -107,4 +109,10 @@ enum {
IT_SUGAR_MINE = 36,
};
+typedef enum IndustryLifeTypes {
+ INDUSTRYLIFE_NOT_CLOSABLE, ///< Industry can never close
+ INDUSTRYLIFE_PRODUCTION, ///< Industry can close and change of production
+ INDUSTRYLIFE_CLOSABLE, ///< Industry can only close (no production change)
+} IndustryLifeType;
+
#endif /* INDUSTRY_H */