summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-14 21:13:45 +0000
committeryexo <yexo@openttd.org>2009-02-14 21:13:45 +0000
commit5a5bc8ab523a27d5d419443a4c19e08778d7974a (patch)
tree7f887a993593c6a062e6060378109c856ebaa708 /src/ai
parent8ceb92e6998cdcf0b7821a9c18ec8d216b1a06fa (diff)
downloadopenttd-5a5bc8ab523a27d5d419443a4c19e08778d7974a.tar.xz
(svn r15487) -Change [API CHANGE]: Remove the never implemented function AIEventVehicleCrashed::CloneCrashedVehicle.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/api/ai_event_types.cpp5
-rw-r--r--src/ai/api/ai_event_types.hpp13
-rw-r--r--src/ai/api/ai_event_types.hpp.sq7
3 files changed, 4 insertions, 21 deletions
diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp
index abff79873..d3e0b4d83 100644
--- a/src/ai/api/ai_event_types.cpp
+++ b/src/ai/api/ai_event_types.cpp
@@ -9,11 +9,6 @@
#include "../../articulated_vehicles.h"
#include "table/strings.h"
-bool AIEventVehicleCrashed::CloneCrashedVehicle(TileIndex depot)
-{
- return false;
-}
-
char *AIEventEnginePreview::GetName()
{
static const int len = 64;
diff --git a/src/ai/api/ai_event_types.hpp b/src/ai/api/ai_event_types.hpp
index ce5cf0a14..2e6c526b4 100644
--- a/src/ai/api/ai_event_types.hpp
+++ b/src/ai/api/ai_event_types.hpp
@@ -14,10 +14,7 @@
/**
* Event Vehicle Crash, indicating a vehicle of yours is crashed.
- * It contains both the crash site as the vehicle crashed. It has a nice
- * helper that creates a new vehicle in a depot with the same type
- * and orders as the crashed one. In case the vehicle type isn't available
- * anymore, it will find the next best.
+ * It contains the crash site, the crashed vehicle and the reason for the crash.
*/
class AIEventVehicleCrashed : public AIEvent {
public:
@@ -71,14 +68,6 @@ public:
*/
CrashReason GetCrashReason() { return crash_reason; }
- /**
- * Clone the crashed vehicle and send it on its way again.
- * @param depot the depot to build the vehicle in.
- * @return True when the cloning succeeded.
- * @note This function isn't implemented yet.
- */
- bool CloneCrashedVehicle(TileIndex depot);
-
private:
TileIndex crash_site;
VehicleID vehicle;
diff --git a/src/ai/api/ai_event_types.hpp.sq b/src/ai/api/ai_event_types.hpp.sq
index c02f22c50..ebb4a0089 100644
--- a/src/ai/api/ai_event_types.hpp.sq
+++ b/src/ai/api/ai_event_types.hpp.sq
@@ -29,10 +29,9 @@ void SQAIEventVehicleCrashed_Register(Squirrel *engine) {
SQAIEventVehicleCrashed.DefSQStaticMethod(engine, &AIEventVehicleCrashed::Convert, "Convert", 2, "?x");
- SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetVehicleID, "GetVehicleID", 1, "x");
- SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetCrashSite, "GetCrashSite", 1, "x");
- SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetCrashReason, "GetCrashReason", 1, "x");
- SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::CloneCrashedVehicle, "CloneCrashedVehicle", 2, "xi");
+ SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetVehicleID, "GetVehicleID", 1, "x");
+ SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetCrashSite, "GetCrashSite", 1, "x");
+ SQAIEventVehicleCrashed.DefSQMethod(engine, &AIEventVehicleCrashed::GetCrashReason, "GetCrashReason", 1, "x");
SQAIEventVehicleCrashed.PostRegister(engine);
}