src/ai/api/ai_industrylist.hpp
branchnoai
changeset 9816 35e866676c00
parent 9797 5bb54b2a6f6f
child 9829 80fbe02a4184
equal deleted inserted replaced
9815:efac4d882b25 9816:35e866676c00
    14  */
    14  */
    15 class AIIndustryList : public AIAbstractList {
    15 class AIIndustryList : public AIAbstractList {
    16 public:
    16 public:
    17 	static const char *GetClassName() { return "AIIndustryList"; }
    17 	static const char *GetClassName() { return "AIIndustryList"; }
    18 	AIIndustryList();
    18 	AIIndustryList();
    19 
       
    20 private:
       
    21 	const char *GetListName() const { return "AIIndustryList"; }
       
    22 };
    19 };
    23 
    20 
    24 /**
    21 /**
    25  * Creates a list of industries that accepts a given cargo.
    22  * Creates a list of industries that accepts a given cargo.
    26  * @ingroup AIIndustryList
    23  * @ingroup AIIndustryList
    31 
    28 
    32 	/**
    29 	/**
    33 	 * @param cargo_id The cargo this industry should accept.
    30 	 * @param cargo_id The cargo this industry should accept.
    34 	 */
    31 	 */
    35 	AIIndustryList_CargoAccepting(CargoID cargo_id);
    32 	AIIndustryList_CargoAccepting(CargoID cargo_id);
    36 
       
    37 private:
       
    38 	const char *GetListName() const { return "AIIndustryList"; }
       
    39 };
    33 };
    40 
    34 
    41 /**
    35 /**
    42  * Creates a list of industries that can produce a given cargo.
    36  * Creates a list of industries that can produce a given cargo.
    43  * @note It also contains industries that currently produces 0 units of the cargo.
    37  * @note It also contains industries that currently produces 0 units of the cargo.
    49 
    43 
    50 	/**
    44 	/**
    51 	 * @param cargo_id The cargo this industry should produce.
    45 	 * @param cargo_id The cargo this industry should produce.
    52 	 */
    46 	 */
    53 	AIIndustryList_CargoProducing(CargoID cargo_id);
    47 	AIIndustryList_CargoProducing(CargoID cargo_id);
    54 
       
    55 private:
       
    56 	const char *GetListName() const { return "AIIndustryList"; }
       
    57 };
    48 };
    58 
    49 
    59 #endif /* AI_INDUSTRYLIST_HPP */
    50 #endif /* AI_INDUSTRYLIST_HPP */