summaryrefslogtreecommitdiff
path: root/src/ai/ai_config.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-07 00:09:27 +0000
committerrubidium <rubidium@openttd.org>2010-01-07 00:09:27 +0000
commit0e404038f27544fe7ebad2127b1651cd471732b6 (patch)
tree2ff838abb0b51b6374b89c68770e32acb03208cc /src/ai/ai_config.hpp
parent1967084bc3800615e6584d9d3115e0109a0e40da (diff)
downloadopenttd-0e404038f27544fe7ebad2127b1651cd471732b6.tar.xz
(svn r18747) -Codechange: add some constness to the AI code
Diffstat (limited to 'src/ai/ai_config.hpp')
-rw-r--r--src/ai/ai_config.hpp12
1 files changed, 6 insertions, 6 deletions
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;