src/ai/api/ai_vehiclelist_valuator.hpp
branchnoai
changeset 9806 d65cc2bcb0de
parent 9780 37eb5460ff2e
--- a/src/ai/api/ai_vehiclelist_valuator.hpp	Thu Feb 28 13:49:41 2008 +0000
+++ b/src/ai/api/ai_vehiclelist_valuator.hpp	Thu Feb 28 14:28:44 2008 +0000
@@ -98,6 +98,22 @@
 };
 
 /**
+ * Get the running costs for the entries in an AIVehicleList instance.
+ * @note Resulting items are of the type int32 (cost is per year).
+ * @note Can only operate on an AIVehicleList instance.
+ * @ingroup AIVehicleList
+ */
+class AIVehicleList_vRunningCost : public AIAbstractList::Valuator {
+public:
+	static const char *GetClassName() { return "AIVehicleList_vRunningCost"; }
+
+private:
+	const char *GetListName() const { return "AIVehicleList"; }
+	int32 Valuate(int32 vehicle_id) const;
+};
+
+
+/**
  * Get the profit of this year for entries in an AIVehicleList instance.
  * @note Resulting items are of the type int32 (age in days).
  * @note Can only operate on an AIVehicleList instance.