(svn r25969) -Add: [Script] ScriptTown::GetFundBuildingsDuration.

This commit is contained in:
frosch
2013-11-12 17:57:32 +00:00
parent 9a41aefcc4
commit 17eb3ee9df
6 changed files with 20 additions and 0 deletions

View File

@@ -333,6 +333,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.