(svn r9622) [NoAI] -Add: added AITownList, which lists all towns (and which you can iterate)
[NoAI] -Add: added AITownListValuators, to get, for example, all population of the townlist (see regression-test for example)
[NoAI] -Fix: fixed AIList to allow Valuators in a simple and safe way (tnx a lot KUDr)
[NoAI] -Update: updated regression to test above changes
[NoAI] -Fix: Valuate() of valuators are no longer public (Rubidium)
#include "ai_townlist.hpp"
#include "../../town.h"
AITownList::AITownList()
{
Town *t;
FOR_ALL_TOWNS(t) {
this->AddItem(t->index);
}
}