package java.game.vehicles.BMW_635csi;

import java.game.*;
import java.io.*;
import java.util.resource.*;

public class BMW_635csi_VT extends VehicleType
{
	public BMW_635csi_VT( int id )
	{
		this();
	}

	public BMW_635csi_VT()
	{
		super(0);	//pass index (needed to set in tunings!)

		id = vehicles.BMW_635csi:0x0000000Ar;
// name of the car //
		name = "BMW 635csi";
// end of name of the car //
		path = "vehicles\\BMW_635csi\\";
		skins = new FindFile().all( path+"textures\\skins\\", "*.dds", FindFile.FILES_ONLY );
		softShadow = vehicles.BMW_635csi:0x9000r;

		marker_rt = new ResourceRef(vehicles.BMW_635csi:0x00C5r);
		marker_basetex = new ResourceRef(vehicles:0x010Ar);
		markerCM = new Vector3(0.000, -0.789, 0.000); // delta vector for the position of the shadow plane based on chassis pivot position //
 
// car description //
		info = "A high-end two-door luxury sports coupe dubbed the 'Bavarian Ferrari,' the 6-series is considered by many to be the most aesthetically pleasing BMW of all time. Just 86,219 units were built between November 1975 and April 1989. About half of those came to the United States.";
// end of car description //

		{
			String[] stinfo = { "The factory body kit"};
			String[] s1info = { "This pack has carbon bumpers at the front and rear compared to the stock car"};
			String[] s2info = { "The Stage 1 kit plus a rear wing for better traction"};
			String[] s3info = { "Stage 2 kit except for the carbon-fibre hood"};

			Tuning[]	tuningType = {
				 new Tuning( vts_STOCK, null )			.setInfo( stinfo )
				,new Tuning( vts_STAGE1, "Pega Wings")		.setInfo( s1info )
				,new Tuning( vts_STAGE2, "LunaLight Tuning")	.setInfo( s2info )
				,new Tuning( vts_STAGE3, "ATD Tuning")		.setInfo( s3info )
			};
			tuningTable[Tuning.TT_BODY] = tuningType;
		}
		{
// suspension descriptions //
			String[] stinfo = { "Suspension system for Track Racing."};
			String[] s1info = { "Suspension system for Road Racing."};
			String[] s2info = { "Suspension system for Auto-Cross Racing."};
                        String[] s3info = { "Suspension system for Off-Road Racing."};
// end of suspension descriptions //

			Tuning[]	tuningType = {
				 new Tuning( vts_STOCK, null )							.setInfo( stinfo )
				,new Tuning( vts_STAGE1, "Berginstein")						.setInfo( s1info )
				,new Tuning( vts_STAGE2, "Hikoshimu")						.setInfo( s2info )				                ,new Tuning( vts_STAGE3, "Hikoshimu")						.setInfo( s3info )
			};
			tuningTable[Tuning.TT_SUSP] = tuningType;
		}
		{
// engine descriptions //
			String[] stinfo = { "In its day the 3.5l M30 engine was quite a powerful engine producing 218Bhp, it is known that a racing version of this engine can produce up to 850Bhp!!."};
			String[] s1info = { "After a light tuning from Alpina, The engine can now produce 371Bhp and 365Nm of torque and reaching a rev limit of 7900rpm."};
			String[] s2info = { "No description"};
			String[] s3info = { "No description"};
// end of engine descriptions //

			Tuning[]	tuningType = {
				 new Tuning( vts_STOCK, null )			.setInfo( stinfo )
				,new Tuning( vts_STAGE1, "2-Torque")		.setInfo( s1info )
			};
			tuningTable[Tuning.TT_ENGN] = tuningType;
		}
		{
// transmission descriptions //
			String[] stinfo = { "The factory 5 speed transmission."};
			String[] s1info = { "A new 5-speed transmission with low gear ratio's for small tracks, also for loose & elevating surfaces."};
			String[] s2info = { "Another new transmission this time with 6-speeds, this uses the same gear ratio's as the standard box except with an extra gear for better acceleration."};
// end of transmission descriptions //

			Tuning[]	tuningType = {
				 new Tuning( vts_STOCK, null )							.setInfo( stinfo )

				,new Tuning( vts_STAGE1, "Trans-LA")						.setInfo( s1info )

				,new Tuning( vts_STAGE2, "Q-uickShift")						.setInfo( s2info )

			};
			tuningTable[Tuning.TT_TRNY] = tuningType;
		}
		{
// brake descriptions //
			String[] stinfo = { "No description"};
			String[] s1info = { "No description"};
			String[] s2info = { "No description"};
			String[] s3info = { "No description"};
// end of brake descriptions //

			Tuning[]	tuningType = {
				 new Tuning( vts_STOCK, null )							.setInfo( stinfo )

				,new Tuning( vts_STAGE1, "BremzEin")						.setInfo( s1info )

				,new Tuning( vts_STAGE2, "BilBrake")						.setInfo( s2info )

				,new Tuning( vts_STAGE3, "Pro-Race")						.setInfo( s3info )
			};
			tuningTable[Tuning.TT_BRKE] = tuningType;
		}
		{
			String[] stinfo = { "100% FWD drivetrain kit with free differential"};
			String[] s1info = { "100% RWD drivetrain kit with free differential"};
			String[] s2info = { "Freely adjustable AWD drivetrain kit with free differential"};
			String[] s3info = { "Fully adjustable AWD drivetrain kit with 0-35% LSD lock rate"};

			Tuning[]	tuningType = {
				 new Tuning( "FWD", null )							.setInfo( stinfo )

				,new Tuning( "RWD", "Makataki Drives")					.setInfo( s1info )

				,new Tuning( "Free", "McRoven Systems")					.setInfo( s2info )
														.defValue( 0.5, 0.0 )
														.addPreset( vts_FWD,		vts_CLICK_2_CHANGE, 0.0, 0.0 )
														.addPreset( vts_AWD,		vts_CLICK_2_CHANGE, 0.5, 0.0 )
														.addPreset( vts_RWD,		vts_CLICK_2_CHANGE, 1.0, 0.0 )
														.addFineTuner( vts_DRIV_RAT,	vts_FRONT_REAR, 0, 0.0, 1.0, 0 )

				,new Tuning( "Custom", "State Ultra Kits")					.setInfo( s3info )
														.defValue( 0.5, 0.0 )
// custom stage 3 drivetrain presets //
														.addPreset( "Stock Turbo setup", vts_CLICK_2_CHANGE, 0.850, 0.286)
														.addPreset( "Stock GT3 setup", vts_CLICK_2_CHANGE, 1.000, 0.571)
// end of custom stage 3 drivetrain presets //
														.addFineTuner( vts_DFFL_STG,	vts_LOW_HIGH, 1, 0.0, 1.0, 0 )
														.addFineTuner( vts_DRIV_RAT,	vts_FRONT_REAR, 0, 0.0, 1.0, 0 )
			};
			tuningTable[Tuning.TT_DRTR] = tuningType;
		}

		attachTunings();

		temp_numPresets = 0;
	}

	public VhcSettings getPreset( int presetID )
	{
		return null;
	}
}
