(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.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user