Пример #1
0
 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;
 }
Пример #2
0
 public void setDrivetrain(Drivetrain drivetrain)
 {
     _drivetrain = drivetrain;
     AddComponent(drivetrain);
 }