Beispiel #1
0
 public void MakeLittleHeat()
 {
     if (foodHeatStatus != FoodHeat.Hot)
     {
         foodHeatStatus = FoodHeat.Warm;
     }
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        public void MakeEasyCooling()
        {
            switch (foodHeatStatus)
            {
            case FoodHeat.Hot:
                foodHeatStatus = FoodHeat.Warm;
                break;

            default:
                foodHeatStatus = FoodHeat.Cold;
                break;
            }
        }
Beispiel #4
0
 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++;
 }
Beispiel #5
0
 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;
 }
Beispiel #6
0
 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;
 }
Beispiel #7
0
 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;
 }
Beispiel #8
0
 public void MakeHardCooling()
 {
     foodHeatStatus = FoodHeat.Cold;
 }
Beispiel #9
0
 public void MakeLongHeat()
 {
     foodHeatStatus = FoodHeat.Hot;
 }