summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_engine.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-31 23:22:49 +0000
committeryexo <yexo@openttd.org>2009-07-31 23:22:49 +0000
commit3631f4063718360a822950134ed56c28205f2bef (patch)
treeb053e8dd5b6fb20e8c581fa8c0d7936b47c03c12 /src/ai/api/ai_engine.hpp
parent5186d1d4f6c0fd866ef45046ac8368f5ab5693ae (diff)
downloadopenttd-3631f4063718360a822950134ed56c28205f2bef.tar.xz
(svn r17014) -Add [NoAI]: AIEngine::GetDesignDate
Diffstat (limited to 'src/ai/api/ai_engine.hpp')
-rw-r--r--src/ai/api/ai_engine.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ai/api/ai_engine.hpp b/src/ai/api/ai_engine.hpp
index 93c6f2233..67179d330 100644
--- a/src/ai/api/ai_engine.hpp
+++ b/src/ai/api/ai_engine.hpp
@@ -153,6 +153,14 @@ public:
static int32 GetMaxTractiveEffort(EngineID engine_id);
/**
+ * Get the date this engine was designed.
+ * @param engine_id The engine to get the design date of.
+ * @pre IsValidEngine(engine_id).
+ * @return The date this engine was designed.
+ */
+ static int32 GetDesignDate(EngineID engine_id);
+
+ /**
* Get the type of an engine.
* @param engine_id The engine to get the type of.
* @pre IsValidEngine(engine_id).