Esempio n. 1
0
 internal FuelEngine(Dictionary <string, string> i_FuelEngineInfo) : base(i_FuelEngineInfo["Current fuel amount:"], i_FuelEngineInfo["max fuel amount:"])
 {
     m_FuelType = PropertiesValidation.EnumTryParse <eFuelType>(i_FuelEngineInfo["Fuel type:"], "Fuel type");
 }
Esempio n. 2
0
 internal Motorcycle(Dictionary <string, string> i_MotorcycleInfo, Engine i_Engine) : base(i_MotorcycleInfo, i_Engine)
 {
     m_LicenseType    = PropertiesValidation.EnumTryParse <eLicenseType>(i_MotorcycleInfo["License type:"], "License type");
     m_EngineCapacity = int.Parse(i_MotorcycleInfo["Engine capacity:"]);
 }
Esempio n. 3
0
 internal Car(Dictionary <string, string> i_CarInfo, Engine i_Engine) : base(i_CarInfo, i_Engine)
 {
     m_Color         = PropertiesValidation.EnumTryParse <eColor>(i_CarInfo["Car's color:"], "Car's color");
     m_NumberOfDoors = (Car.eNumberOfDoors) int.Parse(i_CarInfo["Number of doors:"]);
 }