(svn r21654) -Add: [NoAI] AITown::IsCity() so AIs can find out which towns grow faster than others (Lord Aro)

This commit is contained in:
yexo
2010-12-29 12:19:33 +00:00
parent f27163930c
commit e7eb1cc9f4
5 changed files with 45 additions and 0 deletions

View File

@@ -226,6 +226,14 @@ public:
*/
static bool HasStatue(TownID town_id);
/**
* Find out if the town is a city.
* @param town_id The town to check.
* @pre IsValidTown(town_id).
* @return True if the town is a city.
*/
static bool IsCity(TownID town_id);
/**
* Find out how long the town is undergoing road reconstructions.
* @param town_id The town to check.