src/ai/api/ai_vehiclelist_valuator.hpp
branchnoai
changeset 9806 d65cc2bcb0de
parent 9780 37eb5460ff2e
equal deleted inserted replaced
9805:d7f0e62cedf3 9806:d65cc2bcb0de
    96 	const char *GetListName() const { return "AIVehicleList"; }
    96 	const char *GetListName() const { return "AIVehicleList"; }
    97 	int32 Valuate(int32 vehicle_id) const;
    97 	int32 Valuate(int32 vehicle_id) const;
    98 };
    98 };
    99 
    99 
   100 /**
   100 /**
       
   101  * Get the running costs for the entries in an AIVehicleList instance.
       
   102  * @note Resulting items are of the type int32 (cost is per year).
       
   103  * @note Can only operate on an AIVehicleList instance.
       
   104  * @ingroup AIVehicleList
       
   105  */
       
   106 class AIVehicleList_vRunningCost : public AIAbstractList::Valuator {
       
   107 public:
       
   108 	static const char *GetClassName() { return "AIVehicleList_vRunningCost"; }
       
   109 
       
   110 private:
       
   111 	const char *GetListName() const { return "AIVehicleList"; }
       
   112 	int32 Valuate(int32 vehicle_id) const;
       
   113 };
       
   114 
       
   115 
       
   116 /**
   101  * Get the profit of this year for entries in an AIVehicleList instance.
   117  * Get the profit of this year for entries in an AIVehicleList instance.
   102  * @note Resulting items are of the type int32 (age in days).
   118  * @note Resulting items are of the type int32 (age in days).
   103  * @note Can only operate on an AIVehicleList instance.
   119  * @note Can only operate on an AIVehicleList instance.
   104  * @ingroup AIVehicleList
   120  * @ingroup AIVehicleList
   105  */
   121  */