示例#1
0
文件: Car.cs 项目: DanBinyamin/Garge
 internal Car(string i_LicenseId, string i_NameOfModel)
     : base(i_LicenseId, i_NameOfModel)
 {
     IntalizingWheels(4, 31);
     m_VehicleInfo = new VehicleInfo();
 }
示例#2
0
        public void InflateWheelsToMax(string i_LicensePlate)
        {
            VehicleInfo v = FindVehicle(i_LicensePlate);

            v.Vehicle.InflateWheelsToMax();
        }
示例#3
0
        public void FillGas(string i_VehicleLicensePlate, Gasoline.eGasType i_GasType, float i_ToAdd)
        {
            VehicleInfo currVehicleInfo = FindVehicle(i_VehicleLicensePlate);

            currVehicleInfo.Vehicle.RefillGas(i_ToAdd, i_GasType);
        }
示例#4
0
 public void Insert(VehicleInfo i_VehicleInfo)
 {
     r_VehicleList.Add(i_VehicleInfo.Vehicle.LicensePlate, i_VehicleInfo);
 }