File diff r21218:8daf27729482 → r21219:7180bb39d4d9
src/script/api/script_subsidy.hpp
Show inline comments
 
@@ -10,12 +10,13 @@
 
/** @file script_subsidy.hpp Everything to query subsidies. */
 

	
 
#ifndef SCRIPT_SUBSIDY_HPP
 
#define SCRIPT_SUBSIDY_HPP
 

	
 
#include "script_company.hpp"
 
#include "script_date.hpp"
 

	
 
/**
 
 * Class that handles all subsidy related functions.
 
 * @api ai game
 
 */
 
class ScriptSubsidy : public ScriptObject {
 
@@ -80,13 +81,13 @@ public:
 
	 * @param subsidy_id The SubsidyID to check.
 
	 * @pre IsValidSubsidy(subsidy_id).
 
	 * @return The last valid date of this subsidy.
 
	 * @note The return value of this function will change if the subsidy is
 
	 *  awarded.
 
	 */
 
	static int32 GetExpireDate(SubsidyID subsidy_id);
 
	static ScriptDate::Date GetExpireDate(SubsidyID subsidy_id);
 

	
 
	/**
 
	 * Get the cargo type that has to be transported in order to be awarded this
 
	 *  subsidy.
 
	 * @param subsidy_id The SubsidyID to check.
 
	 * @pre IsValidSubsidy(subsidy_id).