diff options
author | rubidium <rubidium@openttd.org> | 2007-07-06 22:33:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-06 22:33:16 +0000 |
commit | c86015203aa7e85cd4e5d6044896a203028ca16a (patch) | |
tree | 1de87f9b435b1ab9b67128267575da1d07cd652e /src/industry.h | |
parent | 472bfba5f8273ae5aff61a4a2c514b6b57d1ed49 (diff) | |
download | openttd-c86015203aa7e85cd4e5d6044896a203028ca16a.tar.xz |
(svn r10459) -Codechange: add helper functions to determine whether an industry is a primary industry and how much it costs to build such an industry.
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/industry.h b/src/industry.h index 505c14096..d8fea7356 100644 --- a/src/industry.h +++ b/src/industry.h @@ -147,6 +147,18 @@ struct IndustrySpec { uint8 cleanup_flag; ///< flags indicating which data should be freed upon cleaning up bool enabled; ///< entity still avaible (by default true).newgrf can disable it, though struct GRFFileProps grf_prop; ///< properties related the the grf file + + /** + * Is an industry with the spec a raw industry? + * @return true if it should be handled as a raw industry + */ + bool IsRawIndustry() const; + + /** + * Get the cost for constructing this industry + * @return the cost (inflation corrected etc) + */ + Money GetConstructionCost() const; }; /** |