summaryrefslogtreecommitdiff
path: root/src/industry.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-07 08:53:19 +0000
committerrubidium <rubidium@openttd.org>2007-07-07 08:53:19 +0000
commit9a55c79fd11e9075b937abe0a6a077fa77a72823 (patch)
treeb284545aafd09cc7fb92b71fbb6207c155507b8f /src/industry.h
parentc86015203aa7e85cd4e5d6044896a203028ca16a (diff)
downloadopenttd-9a55c79fd11e9075b937abe0a6a077fa77a72823.tar.xz
(svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries.
Diffstat (limited to 'src/industry.h')
-rw-r--r--src/industry.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h
index d8fea7356..d97185862 100644
--- a/src/industry.h
+++ b/src/industry.h
@@ -49,6 +49,13 @@ enum CheckProc {
CHECK_END,
};
+enum IndustryConstructionType {
+ ICT_UNKNOWN,
+ ICT_NORMAL_GAMEPLAY,
+ ICT_MAP_GENERATION,
+ ICT_SCENARIO_EDITOR
+};
+
enum IndustyBehaviour {
INDUSTRYBEH_NONE = 0,
INDUSTRYBEH_PLANT_FIELDS = 1 << 0, ///< periodically plants fileds around itself (temp and artic farms)
@@ -96,6 +103,11 @@ struct Industry {
byte was_cargo_delivered; ///< flag that indicate this has been the closest industry chosen for cargo delivery by a station. see DeliverGoodsToIndustry
IndustryID index; ///< index of the industry in the pool of industries
+
+ OwnerByte founder; ///< Founder of the industry
+ Date construction_date; ///< Date of the construction of the industry
+ uint8 construction_type; ///< Way the industry was constructed (@see IndustryConstructionType)
+ Date last_cargo_accepted_at; ///< Last day cargo was accepted by this industry
};
struct IndustryTileTable {