From 4f3eb7f3cda1927822699943574f1c2918548dde Mon Sep 17 00:00:00 2001 From: belugas Date: Thu, 5 Jun 2008 01:43:03 +0000 Subject: (svn r13383) -Codechange: Put the cost of house removal in a class member --- src/town.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/town.h') diff --git a/src/town.h b/src/town.h index 89246f5aa..2bf2b5234 100644 --- a/src/town.h +++ b/src/town.h @@ -16,6 +16,7 @@ #include "settings_type.h" #include "strings_type.h" #include "viewport_type.h" +#include "economy_type.h" enum { HOUSE_NO_CLASS = 0, @@ -242,6 +243,13 @@ struct HouseSpec { /* grf file related properties*/ uint8 local_id; ///< id defined by the grf file for this house const struct GRFFile *grffile; ///< grf file that introduced this house + + /** + * Get the cost for removing this house + * @return the cost (inflation corrected etc) + */ + Money GetRemovalCost() const; + }; extern HouseSpec _house_specs[HOUSE_MAX]; -- cgit v1.2.3-54-g00ecf