src/ai/api/ai_list_valuator.hpp
author truebrain
Wed, 27 Feb 2008 21:07:31 +0000
branchnoai
changeset 9792 e1222f4674c2
parent 9778 38560cd27070
permissions -rw-r--r--
(svn r12294) [NoAI] -Add: added AIBridge(List), which lists all available bridges (no build yet)
/* $Id$ */

/** @file ai_list_valuator.hpp all the valuators for AIList */

#ifndef AI_LIST_VALUATOR_HPP
#define AI_LIST_VALUATOR_HPP

#include "ai_abstractlist.hpp"

/**
 * Give a random value for each entry in an AIList instance.
 * @note Resulting items are of the type int32.
 * @note Can only operate on an AIList instance.
 * @ingroup AIList
 */
class AIList_vRandomize : public AIAbstractList::Valuator {
public:
	static const char *GetClassName() { return "AIList_vRandomize"; }

private:
	const char *GetListName() const { return NULL; }
	int32 Valuate(int32 item) const;
};

#endif /* AI_LIST_VALUATOR_HPP */