summaryrefslogtreecommitdiff
path: root/src/script/api/script_town.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-11-12 17:57:32 +0000
committerfrosch <frosch@openttd.org>2013-11-12 17:57:32 +0000
commit17eb3ee9df210e5a8777fcbc289c2756ed56ef14 (patch)
tree364339e4eb0f43ebd892714effb5739ab3ed1f91 /src/script/api/script_town.hpp
parent9a41aefcc4a75ca98dd73e022d058b52bbd2a26d (diff)
downloadopenttd-17eb3ee9df210e5a8777fcbc289c2756ed56ef14.tar.xz
(svn r25969) -Add: [Script] ScriptTown::GetFundBuildingsDuration.
Diffstat (limited to 'src/script/api/script_town.hpp')
-rw-r--r--src/script/api/script_town.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/script/api/script_town.hpp b/src/script/api/script_town.hpp
index 3f7cf998c..4aef587e6 100644
--- a/src/script/api/script_town.hpp
+++ b/src/script/api/script_town.hpp
@@ -334,6 +334,15 @@ public:
static int GetRoadReworkDuration(TownID town_id);
/**
+ * Find out how long new buildings are still being funded in a town.
+ * @param town_id The town to check.
+ * @pre IsValidTown(town_id).
+ * @return The number of months building construction is still funded.
+ * The value 0 means that there is currently no funding.
+ */
+ static int GetFundBuildingsDuration(TownID town_id);
+
+ /**
* Find out which company currently has the exclusive rights of this town.
* @param town_id The town to check.
* @pre IsValidTown(town_id).