public void MakeLittleHeat() { if (foodHeatStatus != FoodHeat.Hot) { foodHeatStatus = FoodHeat.Warm; } }
public Food(string name, double weight, double carbohydrates, double fats, double proteins) { Id = currentFreeId++; Name = name; Weight = weight; Сarbohydrates = carbohydrates; Fats = fats; Proteins = proteins; foodHeatStatus = FoodHeat.None; }
public void MakeEasyCooling() { switch (foodHeatStatus) { case FoodHeat.Hot: foodHeatStatus = FoodHeat.Warm; break; default: foodHeatStatus = FoodHeat.Cold; break; } }
public FastFood(string name, double weight, double carbohydrates, double fats, double proteins, string datePut, FoodHeat foodHeat, int price) : base(name, weight, carbohydrates, fats, proteins, datePut, foodHeat) { Price = price; NumberOrder = CurrentFreeNumberOrder; CurrentFreeNumberOrder++; }
public Pizza(string name, double weight, double carbohydrates, double fats, double proteins, string datePut, FoodHeat foodHeat, int price, int numberSlices, TypePizza typePizza) : base(name, weight, carbohydrates, fats, proteins, datePut, foodHeat, price) { PizzaType = typePizza; NumberSlices = numberSlices; }
public Burger(string name, double weight, double carbohydrates, double fats, double proteins, string datePut, FoodHeat foodHeat, int price, int numberСutlet, int numberBreads) : base(name, weight, carbohydrates, fats, proteins, datePut, foodHeat, price) { NumberСutlet = numberСutlet; NumberBreads = numberBreads; }
public Food(string name, double weight, double carbohydrates, double fats, double proteins, string datePut, FoodHeat foodHeat) : this(name, weight, carbohydrates, fats, proteins) { PutDate = datePut; foodHeatStatus = foodHeat; }
public void MakeHardCooling() { foodHeatStatus = FoodHeat.Cold; }
public void MakeLongHeat() { foodHeatStatus = FoodHeat.Hot; }