diff -r f854f05bbbce -r c5741021bf59 src/ai/api/ai_abstractlist.hpp --- 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.