public void DestoryVehicle(int vehicleID)
        {
            if (Simulator.TESTMODE)
                Simulator.UI.AddMessage("System", "Destory Vehicle ID : " + vehicleID);

            VehicleRecord record = new VehicleRecord(Simulator.getCurrentTime(), vehicleList[vehicleID].travelTime_total, (vehicleList[vehicleID].travelDistace_pixel * Simulator.mapScale), vehicleList[vehicleID].travelTime_waiting);

            Simulator.DataManager.AddVehicleRecord(record);

            Simulator.UI.RemoveVehicle(vehicleList[vehicleID]);
            vehicleList.Remove(vehicleID);
        }
Пример #2
0
 public void AddVehicleRecord(VehicleRecord record)
 {
     this.vehicleRecords.Add(record);
 }