Пример #1
0
 public void GetDetailesVehicle(List <string> io_listOfDetailes) // this function add the vehicle detailes to the list
 {
     io_listOfDetailes.Add(string.Format("Model name:{0}", m_modelName));
     io_listOfDetailes.Add(string.Format("Linces number:{0}", m_lincesNumber));
     io_listOfDetailes.Add(string.Format("Number of wheels:{0}", wheels.Length.ToString()));
     wheels[0].GetDetailesWhell(io_listOfDetailes);
     m_engine.GetDetailesEngine(io_listOfDetailes);
     io_listOfDetailes.Add(string.Format("Energy Precent Left:{0}", m_energyPrecentLeft.ToString()));
 }