Example #1
0
 public override bool Heal()
 {
     if (SuperPower.ToUpper() == "SEASHELL SPELLS")
     {
         Console.WriteLine($"{Name} successfuly healed with their {SuperPower} super power.");
         return(true);
     }
     Console.WriteLine($"{Name}'s {SuperPower} super power is not an healing power.");
     return(false);
 }
Example #2
0
 // Methods of Fantasy Creature
 public override bool Attack()
 {
     if (SuperPower.ToUpper() == "TAIL WHIP")
     {
         Console.WriteLine($"{Name} successfuly attacked with their {SuperPower} super power.");
         return(true);
     }
     Console.WriteLine($"{Name}'s {SuperPower} super power is not an attacking power.");
     return(false);
 }