public Chassis(string manufacturer, BrakeSystem brakeSystem, Drivetrain drivetrain, Suspension rearSuspension, Suspension frontSuspension, SteeringPowerType steeringPowerType, Wheel wheels) : base(1, manufacturer) { _brakesystem = brakeSystem; _rearSuspension = rearSuspension; _frontSuspension = frontSuspension; _drivetrain = drivetrain; _steeringPowerType = steeringPowerType; _wheels = wheels; _cost = _brakesystem.Cost + _drivetrain.Cost + _rearSuspension.Cost + _frontSuspension.Cost + _wheels.Cost; }
public void setDrivetrain(Drivetrain drivetrain) { _drivetrain = drivetrain; AddComponent(drivetrain); }