--- a/src/ai/api/ai_townlist_valuator.hpp Sat Jul 14 23:35:46 2007 +0000
+++ b/src/ai/api/ai_townlist_valuator.hpp Sat Jul 14 23:49:31 2007 +0000
@@ -8,6 +8,22 @@
#include "ai_abstractlist.hpp"
/**
+ * Give a random value for the entries in an AITownList instance.
+ * @note resulting items are of the type int32
+ * @note the input items are of the type TownID
+ */
+class AITownListRandomize : public AIAbstractList::Valuator {
+public:
+ /**
+ * The name of the class, needed by several sub-processes.
+ */
+ static const char *GetClassName() { return "AITownListRandomize"; }
+
+private:
+ int32 Valuate(int32 town) const;
+};
+
+/**
* Get the population for entries in an AITownList instance.
* @note resulting items are of the type int32
* @note the input items are of the type TownID