src/ai/api/ai_list_valuator.hpp
author truelight
Sun, 15 Jul 2007 00:15:23 +0000
branchnoai
changeset 9661 32ce5530b9e3
child 9753 7209db94ad12
permissions -rw-r--r--
(svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
9661
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     1
/* $Id$ */
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     2
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     3
/** @file ai_list_valuator.hpp all the valuators for list */
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     4
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     5
#ifndef AI_LIST_VALUATOR_HPP
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     6
#define AI_LIST_VALUATOR_HPP
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     7
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     8
#include "ai_abstractlist.hpp"
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
     9
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    10
/**
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    11
 * Give a random value for the entries in an AIList instance.
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    12
 * @note resulting items are of the type int32
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    13
 * @note the input items are of the type int32
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    14
 */
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    15
class AIListRandomize : public AIAbstractList::Valuator {
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    16
public:
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    17
	/**
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    18
	 * The name of the class, needed by several sub-processes.
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    19
	 */
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    20
	static const char *GetClassName() { return "AIListRandomize"; }
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    21
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    22
private:
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    23
	int32 Valuate(int32 item) const;
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    24
};
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    25
32ce5530b9e3 (svn r10571) [NoAI] -Fix r10569: about time I forgot to add some files
truelight
parents:
diff changeset
    26
#endif /* AI_LIST_VALUATOR_HPP */