src/ai/api/ai_list_valuator.hpp
branchnoai
changeset 9661 32ce5530b9e3
child 9753 7209db94ad12
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ai/api/ai_list_valuator.hpp	Sun Jul 15 00:15:23 2007 +0000
@@ -0,0 +1,26 @@
+/* $Id$ */
+
+/** @file ai_list_valuator.hpp all the valuators for list */
+
+#ifndef AI_LIST_VALUATOR_HPP
+#define AI_LIST_VALUATOR_HPP
+
+#include "ai_abstractlist.hpp"
+
+/**
+ * Give a random value for the entries in an AIList instance.
+ * @note resulting items are of the type int32
+ * @note the input items are of the type int32
+ */
+class AIListRandomize : public AIAbstractList::Valuator {
+public:
+	/**
+	 * The name of the class, needed by several sub-processes.
+	 */
+	static const char *GetClassName() { return "AIListRandomize"; }
+
+private:
+	int32 Valuate(int32 item) const;
+};
+
+#endif /* AI_LIST_VALUATOR_HPP */