equal
deleted
inserted
replaced
14 #include "town_type.h" |
14 #include "town_type.h" |
15 #include "player_type.h" |
15 #include "player_type.h" |
16 #include "settings_type.h" |
16 #include "settings_type.h" |
17 #include "strings_type.h" |
17 #include "strings_type.h" |
18 #include "viewport_type.h" |
18 #include "viewport_type.h" |
|
19 #include "economy_type.h" |
19 |
20 |
20 enum { |
21 enum { |
21 HOUSE_NO_CLASS = 0, |
22 HOUSE_NO_CLASS = 0, |
22 NEW_HOUSE_OFFSET = 110, |
23 NEW_HOUSE_OFFSET = 110, |
23 HOUSE_MAX = 512, |
24 HOUSE_MAX = 512, |
240 byte minimum_life; ///< The minimum number of years this house will survive before the town rebuilds it |
241 byte minimum_life; ///< The minimum number of years this house will survive before the town rebuilds it |
241 |
242 |
242 /* grf file related properties*/ |
243 /* grf file related properties*/ |
243 uint8 local_id; ///< id defined by the grf file for this house |
244 uint8 local_id; ///< id defined by the grf file for this house |
244 const struct GRFFile *grffile; ///< grf file that introduced this house |
245 const struct GRFFile *grffile; ///< grf file that introduced this house |
|
246 |
|
247 /** |
|
248 * Get the cost for removing this house |
|
249 * @return the cost (inflation corrected etc) |
|
250 */ |
|
251 Money GetRemovalCost() const; |
|
252 |
245 }; |
253 }; |
246 |
254 |
247 extern HouseSpec _house_specs[HOUSE_MAX]; |
255 extern HouseSpec _house_specs[HOUSE_MAX]; |
248 |
256 |
249 uint32 GetWorldPopulation(); |
257 uint32 GetWorldPopulation(); |