--- a/src/ai/api/ai_industrylist_valuator.hpp Wed Oct 17 23:45:22 2007 +0000
+++ b/src/ai/api/ai_industrylist_valuator.hpp Fri Oct 19 09:36:27 2007 +0000
@@ -31,6 +31,29 @@
};
/**
+ * See which entries in the AIIndustryList instance accepts a certain cargo.
+ * @note resulting items are of the type bool
+ * @note the input items are of the type IndustryID
+ */
+class AIIndustryListCargoAccepted : public AIAbstractList::Valuator {
+public:
+ /**
+ * The name of the class, needed by several sub-processes.
+ */
+ static const char *GetClassName() { return "AIIndustryListCargoAccepted"; }
+
+ /**
+ * Custom constructor, we want a cargo-type as parameter.
+ */
+ AIIndustryListCargoAccepted(CargoID cargo_type) { this->cargo_type = cargo_type; }
+
+private:
+ CargoID cargo_type;
+
+ int32 Valuate(int32 industry) const;
+};
+
+/**
* Get the location for entries in an AIIndustryList instance.
* @note resulting items are of the type TileIndex
* @note the input items are of the type IndustryID