From 0e404038f27544fe7ebad2127b1651cd471732b6 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 7 Jan 2010 00:09:27 +0000 Subject: (svn r18747) -Codechange: add some constness to the AI code --- src/ai/ai_config.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ai/ai_config.hpp') diff --git a/src/ai/ai_config.hpp b/src/ai/ai_config.hpp index 8b6007c67..5008b3a3e 100644 --- a/src/ai/ai_config.hpp +++ b/src/ai/ai_config.hpp @@ -48,7 +48,7 @@ public: /** * Get the AIInfo linked to this AIConfig. */ - class AIInfo *GetInfo(); + class AIInfo *GetInfo() const; /** * Get the config list for this AIConfig. @@ -67,7 +67,7 @@ public: * @return The (default) value of the setting, or -1 if the setting was not * found. */ - int GetSetting(const char *name); + int GetSetting(const char *name) const; /** * Set the value of a setting for this config. @@ -87,17 +87,17 @@ public: /** * Is this config attached to an AI? */ - bool HasAI(); + bool HasAI() const; /** * Get the name of the AI. */ - const char *GetName(); + const char *GetName() const; /** * Get the version of the AI. */ - int GetVersion(); + int GetVersion() const; /** * Convert a string which is stored in the config file or savegames to @@ -109,7 +109,7 @@ public: * Convert the custom settings to a string that can be stored in the config * file or savegames. */ - void SettingsToString(char *string, size_t size); + void SettingsToString(char *string, size_t size) const; private: const char *name; -- cgit v1.2.3-54-g00ecf