Changeset - r13956:2bd2a3064bbc
[Not reviewed]
master
0 5 0
yexo - 15 years ago 2009-12-14 22:17:15
yexo@openttd.org
(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a duplicate or AIOrder.SkipToOrder
5 files changed with 6 insertions and 15 deletions:
0 comments (0 inline, 0 general)
bin/ai/compat_0.7.nut
Show inline comments
 
@@ -86,3 +86,8 @@ AIRail.RemoveRailStationTileRect <- func
 
{
 
	return AIRail.RemoveRailStationTileRectangle(tile, tile2, false);
 
}
 

	
 
AIVehicle.SkipToVehicleOrder <- function(vehicle_id, order_position)
 
{
 
	return AIOrder.SkipToOrder(vehicle_id, order_position);
 
}
src/ai/api/ai_changelog.hpp
Show inline comments
 
@@ -44,6 +44,7 @@
 
 * \li AISubsidy::GetDestination, use AISubsidy::GetDestinationIndex instead
 
 * \li AITile::GetHeight, use AITile::GetMinHeight/GetMaxHeight/GetCornerHeight instead
 
 * \li AITown::GetMaxProduction, use AITown::GetLastMonthProduction instead
 
 * \li AIVehicle::SkipToVehicleOrder, use AIOrder::SkipToOrder instead
 
 * \li AIWaypoint::WAYPOINT_INVALID, use AIBaseStation::STATION_INVALID instead
 
 *
 
 * Other changes:
src/ai/api/ai_vehicle.cpp
Show inline comments
 
@@ -193,11 +193,6 @@
 
	return AIObject::DoCommand(0, vehicle_id, 0, CMD_START_STOP_VEHICLE);
 
}
 

	
 
/* static */ bool AIVehicle::SkipToVehicleOrder(VehicleID vehicle_id, AIOrder::OrderPosition order_position)
 
{
 
	return AIOrder::SkipToOrder(vehicle_id, order_position);
 
}
 

	
 
/* static */ bool AIVehicle::ReverseVehicle(VehicleID vehicle_id)
 
{
 
	EnforcePrecondition(false, IsValidVehicle(vehicle_id));
src/ai/api/ai_vehicle.hpp
Show inline comments
 
@@ -460,15 +460,6 @@ public:
 
	static bool StartStopVehicle(VehicleID vehicle_id);
 

	
 
	/**
 
	 * Skips the current order of the given vehicle.
 
	 * @param vehicle_id The vehicle to skip the order for.
 
	 * @param order_position The selected order to which we want to skip.
 
	 * @pre IsValidVehicleOrder(vehicle_id, order_position).
 
	 * @return True if and only if the order has been skipped.
 
	 */
 
	static bool SkipToVehicleOrder(VehicleID vehicle_id, AIOrder::OrderPosition order_position);
 

	
 
	/**
 
	 * Turn the given vehicle so it'll drive the other way.
 
	 * @param vehicle_id The vehicle to turn.
 
	 * @pre IsValidVehicle(vehicle_id).
src/ai/api/ai_vehicle.hpp.sq
Show inline comments
 
@@ -143,7 +143,6 @@ void SQAIVehicle_Register(Squirrel *engi
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::SendVehicleToDepot,             "SendVehicleToDepot",             2, ".i");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::SendVehicleToDepotForServicing, "SendVehicleToDepotForServicing", 2, ".i");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::StartStopVehicle,               "StartStopVehicle",               2, ".i");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::SkipToVehicleOrder,             "SkipToVehicleOrder",             3, ".ii");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::ReverseVehicle,                 "ReverseVehicle",                 2, ".i");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetCapacity,                    "GetCapacity",                    3, ".ii");
 
	SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetLength,                      "GetLength",                      2, ".i");
0 comments (0 inline, 0 general)