src/ai/api/ai_list_valuator.hpp
author truelight
Sun, 19 Aug 2007 13:31:04 +0000
branchnoai
changeset 9698 1d50fe99b7e9
parent 9661 32ce5530b9e3
child 9753 7209db94ad12
permissions -rw-r--r--
(svn r10939) [NoAI] -Add: added AITileList valuator Water
[NoAI] -Add: added AITile::IsWater
/* $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 */