src/ai/api/ai_list_valuator.hpp
author truebrain
Sat, 23 Feb 2008 16:21:10 +0000
branchnoai
changeset 9746 e4ab7ea8d897
parent 9661 32ce5530b9e3
child 9753 7209db94ad12
permissions -rw-r--r--
(svn r12226) [NoAI] -Fix: remove the dep for AIStationList_Vehicle on AIStationList, as Squirrel doesn't like it
/* $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 */