(svn r23617) -Add: ScriptTown::ExpandTown, to grow a town (GameScript only)

This commit is contained in:
truebrain
2011-12-19 20:57:51 +00:00
parent e53b2f2ab0
commit 5ff98b45c1
5 changed files with 36 additions and 9 deletions

View File

@@ -312,6 +312,17 @@ public:
*/
static bool PerformTownAction(TownID town_id, TownAction town_action);
/**
* Expand the town.
* @param town_id The town to expand.
* @param houses The amount of houses to grow the town with.
* @pre IsValidTown(town_id).
* @pre houses > 0.
* @return True if the action succeeded.
* @api -ai
*/
static bool ExpandTown(TownID town_id, int houses);
/**
* Get the rating of a company within a town.
* @param town_id The town to get the rating for.