summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-06-05 01:43:03 +0000
committerbelugas <belugas@openttd.org>2008-06-05 01:43:03 +0000
commitc39997508eb5d171b434ddc6d21633377ac9ba1e (patch)
tree03a05f0530f270ebbdf8d658eba39aececdf68ac /src/town.h
parentf4b1d4b48b73a75dbc679364b2140c567034b44f (diff)
downloadopenttd-c39997508eb5d171b434ddc6d21633377ac9ba1e.tar.xz
(svn r13383) -Codechange: Put the cost of house removal in a class member
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h8
1 files changed, 8 insertions, 0 deletions
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];