public void DeliveryFinished(PizzaOrder currentDelivery) { deliveredPizzas++; totalDeliveryTime += simulator.simTime - currentDelivery.createdOnSimTime; totalIncome += currentDelivery.price; thisWeeksIncome += currentDelivery.price; company.DeliveryFinished(currentDelivery); }
public void DeliveryFinished(PizzaOrder currentDelivery) { ChangeMoney(currentDelivery.price); }