From c86015203aa7e85cd4e5d6044896a203028ca16a Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 6 Jul 2007 22:33:16 +0000 Subject: (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. --- src/industry.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/industry.h') 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; }; /** -- cgit v1.2.3-54-g00ecf