truelight@9661: /* $Id$ */ truelight@9661: truelight@9661: /** @file ai_list_valuator.hpp all the valuators for list */ truelight@9661: truelight@9661: #ifndef AI_LIST_VALUATOR_HPP truelight@9661: #define AI_LIST_VALUATOR_HPP truelight@9661: truelight@9661: #include "ai_abstractlist.hpp" truelight@9661: truelight@9661: /** truelight@9661: * Give a random value for the entries in an AIList instance. truelight@9661: * @note resulting items are of the type int32 truelight@9661: * @note the input items are of the type int32 truelight@9661: */ truelight@9661: class AIListRandomize : public AIAbstractList::Valuator { truelight@9661: public: truelight@9661: /** truelight@9661: * The name of the class, needed by several sub-processes. truelight@9661: */ truelight@9661: static const char *GetClassName() { return "AIListRandomize"; } truelight@9661: truelight@9661: private: truelight@9661: int32 Valuate(int32 item) const; truelight@9661: }; truelight@9661: truelight@9661: #endif /* AI_LIST_VALUATOR_HPP */