truelight@9579: /* $Id$ */ truelight@9579: truebrain@9829: /** @file ai_list.hpp List custom entries. */ truelight@9579: truelight@9579: #ifndef AI_LIST_HPP truelight@9579: #define AI_LIST_HPP truelight@9579: truelight@9593: #include "ai_abstractlist.hpp" truelight@9579: truelight@9579: /** truebrain@9778: * Creates an empty list, in which you can add integers. truebrain@9778: * @ingroup AIList truelight@9579: */ truelight@9593: class AIList : public AIAbstractList { truelight@9579: public: truelight@9579: static const char *GetClassName() { return "AIList"; } truelight@9579: truelight@9593: public: truelight@9579: /** truelight@9593: * Add an item to the list. truelight@9593: * @param item the item to add. truelight@9664: * @param value the value to assign. truelight@9579: */ truelight@9664: void AddItem(int32 item, int32 value); truelight@9664: truelight@9664: /** truelight@9664: * Change the value of an item in the list. truelight@9664: * @param item the item to change truelight@9664: * @param value the value to assign. truelight@9664: */ truelight@9664: void ChangeItem(int32 item, int32 value); truelight@9579: truelight@9579: /** truelight@9593: * Remove the item from the list. truelight@9593: * @param item the item to remove. truelight@9579: */ truelight@9579: void RemoveItem(int32 item); truelight@9579: }; truelight@9579: truelight@9579: #endif /* AI_LIST_HPP */