src/ai/api/ai_abstractlist.hpp
branchnoai
changeset 9664 c5741021bf59
parent 9596 8af5a1399842
child 9665 e889ac1e663a
--- a/src/ai/api/ai_abstractlist.hpp	Sun Jul 15 11:28:52 2007 +0000
+++ b/src/ai/api/ai_abstractlist.hpp	Sun Jul 15 11:45:25 2007 +0000
@@ -108,6 +108,14 @@
 	int32 GetValue(int32 item);
 
 	/**
+	 * Set a value of an item directly.
+	 * @param item the item to set the value for.
+	 * @param value the value to give to the item
+	 * @return true if we could set the item to value, false otherwise.
+	 */
+	bool SetValue(int32 item, int32 value);
+
+	/**
 	 * Sort this list by item-value.
 	 * @param ascending if true, lowest value is on top, else at bottom.
 	 * @note the current item stays at the same place.