summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_town.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-12-29 12:19:33 +0000
committeryexo <yexo@openttd.org>2010-12-29 12:19:33 +0000
commit399a9641fe161fd631a26b7faa0ce63fc136219b (patch)
tree8cfe5ba66f57fc547b1f5ae7426cfe3151df0415 /src/ai/api/ai_town.hpp
parent0d613156e725a2e38e915b7048ab1e9ac5b3cae5 (diff)
downloadopenttd-399a9641fe161fd631a26b7faa0ce63fc136219b.tar.xz
(svn r21654) -Add: [NoAI] AITown::IsCity() so AIs can find out which towns grow faster than others (Lord Aro)
Diffstat (limited to 'src/ai/api/ai_town.hpp')
-rw-r--r--src/ai/api/ai_town.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ai/api/ai_town.hpp b/src/ai/api/ai_town.hpp
index 83c9b2fa4..fb3abfe0b 100644
--- a/src/ai/api/ai_town.hpp
+++ b/src/ai/api/ai_town.hpp
@@ -227,6 +227,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.
* @pre IsValidTown(town_id).