src/ai/api/ai_abstractlist.hpp
branchnoai
changeset 9853 b0512cb3ceb1
parent 9843 29f34a179daf
child 10843 d307cacb3229
equal deleted inserted replaced
9852:ef26d6828e27 9853:b0512cb3ceb1
    30 	SorterType sorter_type;
    30 	SorterType sorter_type;
    31 	bool sort_ascending;
    31 	bool sort_ascending;
    32 	bool initialized;
    32 	bool initialized;
    33 
    33 
    34 public:
    34 public:
    35 	typedef std::set<int32> AIItemList;               ///< The list of items inside the bucket
    35 	typedef std::set<int32> AIItemList;                       //!< The list of items inside the bucket
    36 	typedef std::map<int32, AIItemList> AIAbstractListBucket; ///< The bucket list per value
    36 	typedef std::map<int32, AIItemList> AIAbstractListBucket; //!< The bucket list per value
    37 	typedef std::map<int32, int32> AIAbstractListMap;         ///< List per item
    37 	typedef std::map<int32, int32> AIAbstractListMap;         //!< List per item
    38 
    38 
    39 	AIAbstractListMap items;           ///< The items in the list
    39 	AIAbstractListMap items;           //!< The items in the list
    40 	AIAbstractListBucket buckets;      ///< The items in the list, sorted by value
    40 	AIAbstractListBucket buckets;      //!< The items in the list, sorted by value
    41 
    41 
    42 protected:
    42 protected:
    43 	/**
    43 	/**
    44 	 * Add a single item to the list.
    44 	 * Add a single item to the list.
    45 	 * @param item the item to add. Should be unique, otherwise it is ignored.
    45 	 * @param item the item to add. Should be unique, otherwise it is ignored.