public override List <string> GetEngineDetails(List <string> i_DetailsDictionary) { i_DetailsDictionary = base.GetEngineDetails(i_DetailsDictionary); i_DetailsDictionary.Add(string.Format("Current remaining fuel: {0}", CurrentFuel)); i_DetailsDictionary.Add(string.Format("Liter fuel tank: {0}", MaxEnergy)); i_DetailsDictionary.Add(string.Format("Fuel type: {0}", FuelType.ToString())); return(i_DetailsDictionary); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("The Max Fuel Tank Is The Size Of: " + MaxEnergy + " Litters"); sb.AppendLine("The Fuel Type is: " + FuelType.ToString()); sb.AppendLine("The Current Fuel That Left Is " + CurrentEnergy + " Litters"); return(sb.ToString()); }
public override string ToString() { string fuel = string.Format( "Fuel type is {0}, it has {1} amount of gas left out of {2}{3}", FuelType.ToString(), CurrentFuelTank, MaxTank, Environment.NewLine); return(fuel); }
public override string GetEnergyDetails() { string details = string.Format(@" Current fuel amount in liters: {0} Fuel type: {1} ", m_CurrentFuelAmountInLiters.ToString(), m_FuelType.ToString()); return(details); }
public override string ToString() { return(string.Format( @"Model Name: {0} Car Color: {1} Num Of Doors: {2} Fuel Type: {3} Current Fuel Amount: {4} Maximum Fuel Capacity: {5} {6}", Model, CarDetails.VehicleColor.ToString(), CarDetails.NumOfDoors.GetHashCode(), FuelType.ToString(), Energy.CurrentEnergy, Energy.MaxEnergy, Wheels[0].ToString())); }
public override string ToString() { return(string.Format( @"Model Name: {0} Lisence Type: {1} Engine Capacity: {2} Fuel Type: {3} Current Fuel Amount: {4} Maximum Fuel Capacity: {5} {6}", Model, MotorcycleDetails.LicenseType.ToString(), MotorcycleDetails.EngineCapacity, FuelType.ToString(), Energy.CurrentEnergy, Energy.MaxEnergy, Wheels[0].ToString())); }
public override string ToString() { return(string.Format( @"Model Name: {0} Is Transporting Dangerous Material: {1} Cargo Capacity: {2} Fuel Type: {3} Current Fuel Amount: {4} Maximum Fuel Capacity: {5} {6}", Model, m_IsTransportingDangerousMaterial.ToString(), m_CargoCapacity, FuelType.ToString(), Energy.CurrentEnergy, Energy.MaxEnergy, Wheels[0].ToString())); }