From a79524c805ff0f6cc20f8e21c40433f9240a5e9f Mon Sep 17 00:00:00 2001 From: yexo Date: Sat, 14 Feb 2009 21:13:45 +0000 Subject: (svn r15487) -Change [API CHANGE]: Remove the never implemented function AIEventVehicleCrashed::CloneCrashedVehicle. --- src/ai/api/ai_event_types.cpp | 5 ----- src/ai/api/ai_event_types.hpp | 13 +------------ src/ai/api/ai_event_types.hpp.sq | 7 +++---- 3 files changed, 4 insertions(+), 21 deletions(-) (limited to 'src/ai') 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); } -- cgit v1.2.3-70-g09d2