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.sq | |
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.sq')
-rw-r--r-- | src/ai/api/ai_town.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_town.hpp.sq b/src/ai/api/ai_town.hpp.sq index 68fa02ca3..b7a33551f 100644 --- a/src/ai/api/ai_town.hpp.sq +++ b/src/ai/api/ai_town.hpp.sq @@ -71,6 +71,7 @@ void SQAITown_Register(Squirrel *engine) SQAITown.DefSQStaticMethod(engine, &AITown::GetDistanceSquareToTile, "GetDistanceSquareToTile", 3, ".ii"); SQAITown.DefSQStaticMethod(engine, &AITown::IsWithinTownInfluence, "IsWithinTownInfluence", 3, ".ii"); SQAITown.DefSQStaticMethod(engine, &AITown::HasStatue, "HasStatue", 2, ".i"); + SQAITown.DefSQStaticMethod(engine, &AITown::IsCity, "IsCity", 2, ".i"); SQAITown.DefSQStaticMethod(engine, &AITown::GetRoadReworkDuration, "GetRoadReworkDuration", 2, ".i"); SQAITown.DefSQStaticMethod(engine, &AITown::GetExclusiveRightsCompany, "GetExclusiveRightsCompany", 2, ".i"); SQAITown.DefSQStaticMethod(engine, &AITown::GetExclusiveRightsDuration, "GetExclusiveRightsDuration", 2, ".i"); |