File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/ai/ai_config.hpp
Show inline comments
 
@@ -27,27 +27,27 @@ public:
 
	{}
 

	
 
	AIConfig(const AIConfig *config);
 

	
 
	class AIInfo *GetInfo() const;
 

	
 
	/* virtual */ int GetSetting(const char *name) const;
 
	/* virtual */ void SetSetting(const char *name, int value);
 
	/* virtual */ void AddRandomDeviation();
 
	int GetSetting(const char *name) const override;
 
	void SetSetting(const char *name, int value) override;
 
	void AddRandomDeviation() override;
 

	
 
	/**
 
	 * When ever the AI Scanner is reloaded, all infos become invalid. This
 
	 *  function tells AIConfig about this.
 
	 * @param force_exact_match If true try to find the exact same version
 
	 *   as specified. If false any version is ok.
 
	 * @return \c true if the reset was successful, \c false if the AI was no longer
 
	 *  found.
 
	 */
 
	bool ResetInfo(bool force_exact_match);
 

	
 
protected:
 
	/* virtual */ void PushExtraConfigList();
 
	/* virtual */ void ClearConfigList();
 
	/* virtual */ ScriptInfo *FindInfo(const char *name, int version, bool force_exact_match);
 
	void PushExtraConfigList() override;
 
	void ClearConfigList() override;
 
	ScriptInfo *FindInfo(const char *name, int version, bool force_exact_match) override;
 
};
 

	
 
#endif /* AI_CONFIG_HPP */