public double sellAll(Dictionary <FoodType, int> foodToSell) { double somma = 0; foreach (FoodType f in foodToSell.Keys) { for (int i = 0; i < foodToSell[f]; i++) { somma += FoodTypeMethods.GetPrice(f); } } return(somma); }
public double sell(FoodType f) { return(FoodTypeMethods.GetPrice(f)); }