Exemplo n.º 1
0
 public override void SetInfo(List <string> i_VehicleInfo)
 {
     base.SetInfo(i_VehicleInfo);
     m_WheelsList = Wheel.SetWheels(i_VehicleInfo[4], i_VehicleInfo[5], k_MaxPsi, k_NumberOfWheels);
     m_IsCarryingDangerousMaterials = setIfTruckCarryingDangerousMaterials(i_VehicleInfo[6]);
     m_TruckCapacity = float.Parse(i_VehicleInfo[7]);
 }
Exemplo n.º 2
0
 public override void SetInfo(List <string> i_VehicleInfo)
 {
     base.SetInfo(i_VehicleInfo);
     m_WheelsList    = Wheel.SetWheels(i_VehicleInfo[4], i_VehicleInfo[5], k_MaxWheelsPsi, k_NumberOfWheels);
     m_CarColor      = (eCarColor)Enum.Parse(typeof(eCarColor), i_VehicleInfo[6]);
     m_NumberOfDoors = int.Parse(i_VehicleInfo[7]);
 }
Exemplo n.º 3
0
 public override void SetInfo(List <string> i_VehicleInfo)
 {
     base.SetInfo(i_VehicleInfo);
     m_WheelsList  = Wheel.SetWheels(i_VehicleInfo[4], i_VehicleInfo[5], k_MaxPsi, k_NumberOfWheels);
     m_LicenseType = checkLicenseType(i_VehicleInfo[6]);
 }