summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_engine.hpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-10-28 20:15:46 +0000
committerfrosch <frosch@openttd.org>2009-10-28 20:15:46 +0000
commitd01f5e9e7e78ceb22e36d5378f74b6ef4a842756 (patch)
treedb5464970614a4d93fc735f9e5448d95ccf69603 /src/ai/api/ai_engine.hpp
parent83894809d0bf63f5375cf546f3d353f5299a6442 (diff)
downloadopenttd-d01f5e9e7e78ceb22e36d5378f74b6ef4a842756.tar.xz
(svn r17898) -Fix: [NoAI] Improve behaviour of (AIEngine|AIEventEnginePreview)::GetCargoType() and AIEngine::CanRefitCargo() wrt. articulated vehicles.
Diffstat (limited to 'src/ai/api/ai_engine.hpp')
-rw-r--r--src/ai/api/ai_engine.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ai/api/ai_engine.hpp b/src/ai/api/ai_engine.hpp
index 5f5bed58e..3d213fd3e 100644
--- a/src/ai/api/ai_engine.hpp
+++ b/src/ai/api/ai_engine.hpp
@@ -41,8 +41,8 @@ public:
static char *GetName(EngineID engine_id);
/**
- * Get the cargo-type of an engine. In case it can transport 2 cargos, it
- * returns the first.
+ * Get the cargo-type of an engine. In case it can transport multiple cargos, it
+ * returns the first/main.
* @param engine_id The engine to get the cargo-type of.
* @pre IsValidEngine(engine_id).
* @return The cargo-type of the engine.
@@ -52,6 +52,8 @@ public:
/**
* Check if the cargo of an engine can be refitted to your requested. If
* the engine already allows this cargo, the function also returns true.
+ * In case of articulated vehicles the function decides whether at least one
+ * part can carry the cargo.
* @param engine_id The engine to check for refitting.
* @param cargo_id The cargo to check for refitting.
* @pre IsValidEngine(engine_id).
@@ -75,8 +77,8 @@ public:
static bool CanPullCargo(EngineID engine_id, CargoID cargo_id);
/**
- * Get the capacity of an engine. In case it can transport 2 cargos, it
- * returns the first.
+ * Get the capacity of an engine. In case it can transport multiple cargos, it
+ * returns the first/main.
* @param engine_id The engine to get the capacity of.
* @pre IsValidEngine(engine_id).
* @return The capacity of the engine.