Exemplo n.º 1
0
        internal Baby MakeBaby(Dad dad, string childName)
        {
            Child     = new Baby(childName);
            dad.Child = Child;
            Child.AddComforter(ComfortChild);
            Child.AddComforter(dad.ComfortChild);

            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.WriteLine($"{Name} ha fatto un figlio con {dad.Name} che si chiama {Child.Name}");
            Console.ForegroundColor = ConsoleColor.Gray;
            return(Child);
        }
Exemplo n.º 2
0
 public void Comfort(Dad dad)
 {
     Console.ForegroundColor = ConsoleColor.DarkYellow;
     Console.WriteLine($"{Name} da una leggera scossa di conforto a {dad.Name}");
     Console.ForegroundColor = ConsoleColor.Gray;
 }