コード例 #1
0
 protected override void Finisher(Fighter opponent)
 {
     Console.WriteLine($"I AM {Name.ToUpper()}");
 }
コード例 #2
0
 public void DoStreet(Fighter opponent)
 {
     Console.WriteLine("Splash,swashh");
     TakeDamage((PowerPunch + Speed) * Reputation);
 }
コード例 #3
0
 /// <summary>
 /// All opponent's health should be taken and it should Console.Write a finishing style and recovery time in weeks(hard-coded for each fighter)
 /// </summary>
 /// <param name="opponent">An opponent to finish</param>
 protected abstract void Finisher(Fighter opponent);
コード例 #4
0
 public void DoMuayThai(Fighter opponent)
 {
     Console.WriteLine("Uauaaa");
     TakeDamage((PowerPunch + Speed) * Reputation);
 }
コード例 #5
0
 public void DoBoxing(Fighter opponent)
 {
     Console.WriteLine("Poww");
     TakeDamage((PowerPunch + Speed) * Reputation);
 }
コード例 #6
0
 protected override void Finisher(Fighter opponent)
 {
     Console.WriteLine($"Street fighter health:{ Health}");
 }
コード例 #7
0
 public void DoStreet(Fighter opponent)
 {
     Console.WriteLine("Puf,paf,bong");
     TakeDamage((Speed + PowerPunch) * Experience);
 }
コード例 #8
0
 public void DoBoxing(Fighter opponent)
 {
     Console.WriteLine("Bam,bam,smash");
     TakeDamage((Speed + PowerPunch) * Experience);
 }