src/ai/api/ai_company.hpp
branchnoai
changeset 10291 11cb78922367
parent 10196 aecabd927420
child 10292 7856e972f8aa
--- a/src/ai/api/ai_company.hpp	Mon Apr 21 18:09:52 2008 +0000
+++ b/src/ai/api/ai_company.hpp	Mon Apr 21 20:33:03 2008 +0000
@@ -144,6 +144,51 @@
 	 * @return The tile of the company's HQ, this tile is the most nothern tile of that HQ, or INVALID_TILE if there is no HQ yet.
 	 */
 	static TileIndex GetCompanyHQ(CompanyIndex company);
+
+	/**
+	 * Set whether autorenew is enabled for your company.
+	 * @param autorenew The new autorenew status.
+	 * @return True if autorenew status has been modified.
+	 */
+	static bool SetAutoRenewStatus(bool autorenew);
+
+	/**
+	 * Return whether autorenew is enabled for a company.
+	 * @param company The company to get the autorenew status of.
+	 * @pre ResolveCompanyIndex(company) != INVALID_COMPANY.
+	 * @return True if autorenew is enabled.
+	 */
+	static bool GetAutoRenewStatus(CompanyIndex company);
+
+	/**
+	 * Set the number of months before/after max age to autorenew an engine for your company.
+	 * @param months The new months between autorenew.
+	 * @return True if autorenew months has been modified.
+	 */
+	static bool SetAutoRenewMonths(int16 months);
+
+	/**
+	 * Return the number of months before/after max age to autorenew an engine for a company.
+	 * @param company The company to get the autorenew months of.
+	 * @pre ResolveCompanyIndex(company) != INVALID_COMPANY.
+	 * @return The months between autorenew.
+	 */
+	static int16 GetAutoRenewMonths(CompanyIndex company);
+
+	/**
+	 * Set the minimum money needed to autorenew an engine for your company.
+	 * @param money The new minimum required money for autorenew to work.
+	 * @return True if autorenew money has been modified.
+	 */
+	static bool SetAutoRenewMoney(uint32 money);
+
+	/**
+	 * Return the minimum money needed to autorenew an engine for a company.
+	 * @param company The company to get the autorenew money of.
+	 * @pre ResolveCompanyIndex(company) != INVALID_COMPANY.
+	 * @return The minimum required money for autorenew to work.
+	 */
+	static uint32 GetAutoRenewMoney(CompanyIndex company);
 };
 
 DECLARE_POSTFIX_INCREMENT(AICompany::CompanyIndex);