Example #1
0
 public Truck(
     string _brand,
     string _model,
     Colors _color,
     Fuel_types _fuel,
     uint _max_speed,
     double _horsepowers,
     double _motor_capacity,
     Transmission_brand transmission_brand)
     : base(_brand, _model, _color, _fuel, _max_speed, _horsepowers, _motor_capacity)
 {
     this.transmission_brand = transmission_brand;
 }
Example #2
0
        public static double get_coefficient(Transmission_brand brand)
        {
            double result = 1;

            switch (brand)
            {
            case Transmission_brand.AFE:
            {
                result = 1.1234;
                break;
            }

            case Transmission_brand.ATP:
            {
                result = 1.23131;
                break;
            }

            case Transmission_brand.Ford:
            {
                result = 1.3457;
                break;
            }

            case Transmission_brand.Getrag:
            {
                result = 1.5588;
                break;
            }

            case Transmission_brand.Hughes:
            {
                result = 1.6193;
                break;
            }

            case Transmission_brand.TCI:
            {
                result = 1.6891;
                break;
            }
            }
            return(result);
        }