diff options
author | truebrain <truebrain@openttd.org> | 2011-11-23 16:09:46 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-23 16:09:46 +0000 |
commit | ef02931a3232abb594c1d00db8c1faacd829999f (patch) | |
tree | 04976dddb31d74236466978f9cda04073e6d477c /src/ai/api/ai_townlist.cpp | |
parent | 44a1ae8cf20f3869a044b697b9d8e2ec9d0048d9 (diff) | |
download | openttd-ef02931a3232abb594c1d00db8c1faacd829999f.tar.xz |
(svn r23302) -Add: [NoAI] AITown::GetCargoGoal and AITown::GetGrowthRate to query statistics about a town regarding its growing
Diffstat (limited to 'src/ai/api/ai_townlist.cpp')
-rw-r--r-- | src/ai/api/ai_townlist.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/api/ai_townlist.cpp b/src/ai/api/ai_townlist.cpp index 4057698fc..2ae29a725 100644 --- a/src/ai/api/ai_townlist.cpp +++ b/src/ai/api/ai_townlist.cpp @@ -20,3 +20,10 @@ AITownList::AITownList() this->AddItem(t->index); } } + +AITownEffectList::AITownEffectList() +{ + for (int i = TE_BEGIN; i < TE_END; i++) { + this->AddItem(i); + } +} |