diff options
author | yexo <yexo@openttd.org> | 2010-12-29 12:19:33 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-12-29 12:19:33 +0000 |
commit | 399a9641fe161fd631a26b7faa0ce63fc136219b (patch) | |
tree | 8cfe5ba66f57fc547b1f5ae7426cfe3151df0415 /src/ai/api/ai_town.hpp | |
parent | 0d613156e725a2e38e915b7048ab1e9ac5b3cae5 (diff) | |
download | openttd-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.hpp | 8 |
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). |