File diff r25406:017a9f8d3ec9 → r25407:b37c2c854ce5
src/script/api/script_companymode.hpp
Show inline comments
 
@@ -28,25 +28,25 @@
 
 *  are switched to it.
 
 * @api game
 
 */
 
class ScriptCompanyMode : public ScriptObject {
 
private:
 
	CompanyID last_company; ///< The previous company we were in.
 

	
 
public:
 
	/**
 
	 * Creating instance of this class switches the company used for queries
 
	 *  and commands.
 
	 * @param company The new company to switch to.
 
	 * @note When the instance is destroyed, he restores the company that was
 
	 * @note When the instance is destroyed, it restores the company that was
 
	 *   current when the instance was created!
 
	 */
 
	ScriptCompanyMode(int company);
 

	
 
	/**
 
	 * Destroying this instance reset the company to that what it was
 
	 *   in when the instance was created.
 
	 */
 
	~ScriptCompanyMode();
 
};
 

	
 
#endif /* SCRIPT_COMPANYMODE_HPP */