summaryrefslogtreecommitdiff
path: root/src/ai/ai_config.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-13 00:10:58 +0000
committertruebrain <truebrain@openttd.org>2009-01-13 00:10:58 +0000
commite6883c5cc7dedad23dfcf7a303a7154520db7f5e (patch)
tree6f8cae96c393130678adbf0a04466fece890cd20 /src/ai/ai_config.hpp
parent2462e8dc9d7e3a5a76c96d3c0229019a48e9bfdd (diff)
downloadopenttd-e6883c5cc7dedad23dfcf7a303a7154520db7f5e.tar.xz
(svn r15044) -Add [NoAI]: AIConfig::GetVersion(), to get the version of the current AI
Diffstat (limited to 'src/ai/ai_config.hpp')
-rw-r--r--src/ai/ai_config.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ai/ai_config.hpp b/src/ai/ai_config.hpp
index c628a855f..e6790e22a 100644
--- a/src/ai/ai_config.hpp
+++ b/src/ai/ai_config.hpp
@@ -18,6 +18,7 @@ private:
public:
AIConfig() :
name(NULL),
+ version(-1),
info(NULL)
{}
AIConfig(const AIConfig *config);
@@ -71,6 +72,11 @@ public:
const char *GetName();
/**
+ * Get the version of the AI.
+ */
+ int GetVersion();
+
+ /**
* Convert a string which is stored in the config file or savegames to
* custom settings of this AI.
*/
@@ -84,6 +90,7 @@ public:
private:
const char *name;
+ int version;
class AIInfo *info;
SettingValueList settings;
};