Exemple #1
0
 //CONSTRUCTOR
 public NutritionClinic(string name, Dietitian dietitian, PersonalTrainer personalTrainer)
 {
     Name            = name;
     Dietitian       = dietitian;
     PersonalTrainer = personalTrainer;
     ClientRecord    = new List <Client>();
     SmoothieBar     = new SmoothieBar();
 }
Exemple #2
0
        public string DrinkSmoothie(int index1, int index2)
        {
            Smoothie smoothie = MyClinic.SmoothieBar.MakeSmoothie(MyClinic.SmoothieBar.Pantry[index1], MyClinic.SmoothieBar.Pantry[index2]);

            KcalEatenToday    += smoothie.KcalPerportion;
            ProteinEatenToday += smoothie.ProteinPerportion;

            return($"{Name} drank a smoothie with {smoothie.IngredientOne.Name} and {smoothie.IngredientTwo.Name}. {Environment.NewLine}" +
                   $"It had {smoothie.KcalPerportion} kcal and {smoothie.ProteinPerportion} g protein {Environment.NewLine}" +
                   $"{PersonalDietitian.Evaluate(smoothie, this)} {Environment.NewLine}" +
                   $"{PersonalTrainer.Evaluate(smoothie, this)} {Environment.NewLine}");
        }
Exemple #3
0
 //METHODS
 public string Train()
 {
     KcalEatenToday -= 300;
     return(PersonalTrainer.RandomPositiveFeedback());
 }