src/ai/api/ai_list.hpp
author truelight
Sun, 15 Jul 2007 11:45:25 +0000
branchnoai
changeset 9664 c5741021bf59
parent 9596 8af5a1399842
child 9751 556f25efbc54
permissions -rw-r--r--
(svn r10577) [NoAI] -Add: added ChangeItem to AIList
[NoAI] -Change [API]: AddItem of AIList now takes a second param: value
/* $Id$ */

/** @file ai_list.hpp a simple list which you can manipulate */

#ifndef AI_LIST_HPP
#define AI_LIST_HPP

#include "ai_abstractlist.hpp"

/**
 * Class that creates a simple list of tiles which you can manipulate.
 */
class AIList : public AIAbstractList {
public:
	/**
	 * The name of the class, needed by several sub-processes.
	 */
	static const char *GetClassName() { return "AIList"; }

public:
	/**
	 * Add an item to the list.
	 * @param item the item to add.
	 * @param value the value to assign.
	 */
	void AddItem(int32 item, int32 value);

	/**
	 * Change the value of an item in the list.
	 * @param item the item to change
	 * @param value the value to assign.
	 */
	void ChangeItem(int32 item, int32 value);

	/**
	 * Remove the item from the list.
	 * @param item the item to remove.
	 */
	void RemoveItem(int32 item);
};

#endif /* AI_LIST_HPP */