public Car(string i_ModelName, string i_LicenseNumber, EnrgeyVehicles i_EnrgeyType, float i_RemainingEnergy, string i_ManufacturerName, float i_CurrentAirPressure, ColorCars i_colorCar, DoorNumbers i_DoorNumber) : base(i_ModelName, i_LicenseNumber, i_RemainingEnergy) { m_EnrgeyType = i_EnrgeyType; m_colorCar = i_colorCar; m_DoorNumber = i_DoorNumber; CreatWheels(4, i_ManufacturerName, i_CurrentAirPressure, 31); if (i_EnrgeyType is ElectricVehicles) { m_EnrgeyType.CreatEnrgey(i_RemainingEnergy, 1.8f); } else { m_EnrgeyType.CreatEnrgey(i_RemainingEnergy, 55f); ((FuelVehicles)m_EnrgeyType).FuelType = FuelTypes.Octan96; } }
public Motorcycle(string i_ModelName, string i_LicenseNumber, EnrgeyVehicles i_EnrgeyType, float i_RemainingEnergy, LicenseTypes i_LicenseType, int i_EngineCapacity, string i_ManufacturerName, float i_CurrentAirPressure) : base(i_ModelName, i_LicenseNumber, i_RemainingEnergy) { m_EnrgeyType = i_EnrgeyType; m_LicenseType = i_LicenseType; m_EngineCapacity = i_EngineCapacity; CreatWheels(2, i_ManufacturerName, i_CurrentAirPressure, 33); if (i_EnrgeyType is ElectricVehicles) { m_EnrgeyType.CreatEnrgey(i_RemainingEnergy, 1.4f); } else { m_EnrgeyType.CreatEnrgey(i_RemainingEnergy, 8f); ((FuelVehicles)m_EnrgeyType).FuelType = FuelTypes.Octan95; } }
public Truck(string i_ModelName, string i_LicenseNumber, EnrgeyVehicles i_EnrgeyType, float i_RemainingEnergy, string i_ManufacturerName, float i_CurrentAirPressure, bool i_HaveHazardousMaterials, float i_VolumeOfCargo) : base(i_ModelName, i_LicenseNumber, i_RemainingEnergy) { m_EnrgeyType = i_EnrgeyType; m_HaveHazardousMaterials = i_HaveHazardousMaterials; m_VolumeOfCargo = i_VolumeOfCargo; CreatWheels(12, i_ManufacturerName, i_CurrentAirPressure, 26); m_EnrgeyType.CreatEnrgey(i_RemainingEnergy, 110f); ((FuelVehicles)m_EnrgeyType).FuelType = FuelTypes.Soler; }